logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Struct RowSpan

    A horizontal slice of a row: where it starts and how wide it is.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    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
    Overrides
    ValueType.ToString()
    In this article
    © 2026 Serenity. All Rights Reserved