| ImageSourceRectangle Property |
Gets or sets the source rectangle that defines the region of the
Texture
that should be displayed. This is a game object property.
Namespace: DigitalRune.Game.UI.ControlsAssembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax public Nullable<Rectangle> SourceRectangle { get; set; }
Public Property SourceRectangle As Nullable(Of Rectangle)
Get
Set
public:
property Nullable<Rectangle> SourceRectangle {
Nullable<Rectangle> get ();
void set (Nullable<Rectangle> value);
}
member SourceRectangle : Nullable<Rectangle> with get, set
Property Value
Type:
NullableRectangle
The source rectangle. Can be
if the whole texture should be
displayed.
Remarks Special notes for Windows Universal (UWP):
Usually, the type of this property is a nullable rectangle. In UWP nullable game object
properties cannot be used because of a bug in .NET Native. Therefore, the type of this
property is not nullable in the UWP build. Use an Empty rectangle if
the whole texture should be displayed.
See Also