Device.ScissorRectangle Property

Language:

Retrieves or sets the scissor rectangle.

Definition

Visual Basic Public Property ScissorRectangle As Rectangle
C# public Rectangle ScissorRectangle { get; set; }
C++ public:
property Rectangle ScissorRectangle {
        Rectangle get();
        void set(Rectangle value);
}
JScript public function get ScissorRectangle() : Rectangle
public function set ScissorRectangle(Rectangle);

Property Value

System.Drawing.Rectangle
A Rectangle Leave Site object that defines the rendering area within the render target, if scissor testing is enabled.

This property is read/write. 

Remarks

The scissor rectangle is used as a rectangular clipping region. For more information about the use of rectangles in Microsoft DirectX, see Rectangle Leave Site.

Exceptions
InvalidCallException Occurs if any properties of the Rectangle Leave Site object are invalid.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center