Struct RowSpan
A horizontal slice of a row: where it starts and how wide it is.
Inherited Members
Namespace: Serenity.Shared.Layout
Assembly: Serenity.Shared.dll
Syntax
public readonly struct RowSpan
Constructors
RowSpan(float, float)
Creates a span.
Declaration
public RowSpan(float x, float width)
Parameters
| Type | Name | Description |
|---|---|---|
| float | x | Left edge. |
| float | width | How wide the slice is. |
Fields
Width
How wide the slice is; zero means it was not given any room.
Declaration
public readonly float Width
Field Value
| Type | Description |
|---|---|
| float |
X
Left edge.
Declaration
public readonly float X
Field Value
| Type | Description |
|---|---|
| float |
Properties
IsVisible
Whether the slice was given any room at all.
Declaration
public bool IsVisible { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Right
Right edge.
Declaration
public float Right { get; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
Overlaps(RowSpan)
Whether this slice shares any horizontal space with another.
Declaration
public bool Overlaps(RowSpan other)
Parameters
| Type | Name | Description |
|---|---|---|
| RowSpan | other | The slice to test against. |
Returns
| Type | Description |
|---|---|
| bool | True when the two would draw over each other. |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |