X (Rect)
Key
M11
M12
M21
M22
Tag
Uri
X1
X2
Y1
Y2
TOC
Collapse the table of content
Expand the table of content

X (Rect)

Silverlight

Gets or sets the x-coordinate value of the top left corner of a Rect.

value = object.X
object.X = value

Type: Double

The x-coordinate value of the top left corner of the Rect.

This property is read/write. The default value is 0.

Property values for a Rect and an object for Rect are not available for all cases where Rect is used as a property type. For more information, see the "Remarks" section of the Rect reference topic.

The properties of a Rect do not have a XAML usage, because there is no way to create a Rect in XAML as an object element. Instead, you always specify a Rect as a string that is either provided as a XAML attribute value or set to a property value in script. Each of these cases is supported by a type conversion behavior. If the property that is being set can return a Rect as an object to script, the value that is provided in the original string can be retrieved as the X value of that Rect object.

Reference

Community Additions

ADD
Show:
© 2016 Microsoft