Struct GroupGridViewport
Describes the rendered window into the logical visible-node list.
public readonly struct GroupGridViewport : IEquatable<GroupGridViewport>
- Implements
- Inherited Members
- Extension Methods
Constructors
GroupGridViewport(int, int)
Initializes a new instance of the GroupGridViewport struct.
public GroupGridViewport(int FirstVisibleNodeIndex, int LastVisibleNodeIndex)
Parameters
FirstVisibleNodeIndexintThe first visible-node index included in the viewport.
LastVisibleNodeIndexintThe last visible-node index included in the viewport.
Properties
Count
Gets the number of visible nodes included in the viewport.
public int Count { get; }
Property Value
Empty
Gets an empty viewport.
public static GroupGridViewport Empty { get; }
Property Value
FirstVisibleNodeIndex
Gets the first visible-node index included in the viewport.
public int FirstVisibleNodeIndex { get; }
Property Value
IsEmpty
Gets a value indicating whether this viewport is empty.
public bool IsEmpty { get; }
Property Value
LastVisibleNodeIndex
Gets the last visible-node index included in the viewport.
public int LastVisibleNodeIndex { get; }
Property Value
Methods
Contains(int)
Returns true when a visible-node index is inside this viewport.
public bool Contains(int VisibleNodeIndex)
Parameters
VisibleNodeIndexintThe visible-node index.
Returns
- bool
True if the index is inside this viewport; otherwise, false.
Equals(GroupGridViewport)
Returns true when this instance is equal to another viewport.
public bool Equals(GroupGridViewport Other)
Parameters
OtherGroupGridViewportThe other viewport.
Returns
- bool
True if the viewports are equal; otherwise, false.
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object Obj)
Parameters
Objobject
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(GroupGridViewport, GroupGridViewport)
Returns true when two viewports are equal.
public static bool operator ==(GroupGridViewport Left, GroupGridViewport Right)
Parameters
LeftGroupGridViewportThe left viewport.
RightGroupGridViewportThe right viewport.
Returns
- bool
True if the viewports are equal; otherwise, false.
operator !=(GroupGridViewport, GroupGridViewport)
Returns true when two viewports are not equal.
public static bool operator !=(GroupGridViewport Left, GroupGridViewport Right)
Parameters
LeftGroupGridViewportThe left viewport.
RightGroupGridViewportThe right viewport.
Returns
- bool
True if the viewports are not equal; otherwise, false.