UniformGrid Class
Namespace: Stride.UI.PanelsAssembly: Stride.UI.dll
Represents the grid where all the rows and columns have an uniform size.
[DataContract("UniformGrid")]
public class UniformGrid : GridBase, IUIElementUpdate, IUIElementChildren, IIdentifiable, IScrollAnchorInfo
              | Name | Description | |
|---|---|---|
| Properties | ||
| Columns | Gets or sets the number of columns that the UniformGrid has.  | 
                          |
| Layers | Gets or sets the number of layers that the UniformGrid has.  | 
                          |
| Rows | Gets or sets the number of rows that the UniformGrid has.  | 
                          |
| Methods | ||
| ArrangeOverride(Vector3) | ||
| GetElementGridPositionsAsFloat(UIElement) | Get the positions of an element in the grid as an Vector3.  | 
                          |
| GetElementSpanValuesAsFloat(UIElement) | Get an element span values as an Vector3.  | 
                          |
| GetSurroudingAnchorDistances(Orientation, Single) | ||
| MeasureOverride(Vector3) | ||
Properties
Columns
Gets or sets the number of columns that the UniformGrid has.
[DataMember]
[DataMemberRange(1, 0)]
[Display(null, "Layout")]
public int Columns { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Remarks
The value is coerced in the range [1, System.Int32.MaxValue].
Layers
Gets or sets the number of layers that the UniformGrid has.
[DataMember]
[DataMemberRange(1, 0)]
[Display(null, "Layout")]
public int Layers { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Remarks
The value is coerced in the range [1, System.Int32.MaxValue].
Rows
Gets or sets the number of rows that the UniformGrid has.
[DataMember]
[DataMemberRange(1, 0)]
[Display(null, "Layout")]
public int Rows { get; set; }
              Property Value
| Type | Description | 
|---|---|
| System.Int32 | 
Remarks
The value is coerced in the range [1, System.Int32.MaxValue].
Methods
ArrangeOverride(Vector3)
protected override Vector3 ArrangeOverride(Vector3 finalSizeWithoutMargins)
              Parameters
| Type | Name | Description | 
|---|---|---|
| Vector3 | finalSizeWithoutMargins | 
Returns
| Type | Description | 
|---|---|
| Vector3 | 
Overrides
GetElementGridPositionsAsFloat(UIElement)
Get the positions of an element in the grid as an Vector3.
protected Vector3 GetElementGridPositionsAsFloat(UIElement element)
              Parameters
| Type | Name | Description | 
|---|---|---|
| UIElement | element | The element from which extract the position values  | 
                  
Returns
| Type | Description | 
|---|---|
| Vector3 | The position of the element  | 
                  
GetElementSpanValuesAsFloat(UIElement)
Get an element span values as an Vector3.
protected Vector3 GetElementSpanValuesAsFloat(UIElement element)
              Parameters
| Type | Name | Description | 
|---|---|---|
| UIElement | element | The element from which extract the span values  | 
                  
Returns
| Type | Description | 
|---|---|
| Vector3 | The span values of the element  | 
                  
GetSurroudingAnchorDistances(Orientation, Single)
public override Vector2 GetSurroudingAnchorDistances(Orientation direction, float position)
              Parameters
| Type | Name | Description | 
|---|---|---|
| Orientation | direction | |
| System.Single | position | 
Returns
| Type | Description | 
|---|---|
| Vector2 | 
Overrides
MeasureOverride(Vector3)
protected override Vector3 MeasureOverride(Vector3 availableSizeWithoutMargins)
              Parameters
| Type | Name | Description | 
|---|---|---|
| Vector3 | availableSizeWithoutMargins | 
Returns
| Type | Description | 
|---|---|
| Vector3 |