Microsoft DirectX 9.0 SDK Update (October 2004)

Device.ScissorRectangle Property

Language:

Note: This documentation is preliminary and is subject to change.

Retrieves or sets the scissor rectangle.

Definition

Visual Basic .NET Public Property ScissorRectangle As Rectangle
C# public Rectangle ScissorRectangle { get; set; }
Managed C++ public: __property Rectangle get_ScissorRectangle();
public: __property void set_ScissorRectangle(Rectangle);
JScript .NET 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.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

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