Table of Contents

Struct GroupGridViewport

Namespace
Avalonia.Controls
Assembly
Tripous.Avalonia.Controls.dll

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

FirstVisibleNodeIndex int

The first visible-node index included in the viewport.

LastVisibleNodeIndex int

The 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

int

Empty

Gets an empty viewport.

public static GroupGridViewport Empty { get; }

Property Value

GroupGridViewport

FirstVisibleNodeIndex

Gets the first visible-node index included in the viewport.

public int FirstVisibleNodeIndex { get; }

Property Value

int

IsEmpty

Gets a value indicating whether this viewport is empty.

public bool IsEmpty { get; }

Property Value

bool

LastVisibleNodeIndex

Gets the last visible-node index included in the viewport.

public int LastVisibleNodeIndex { get; }

Property Value

int

Methods

Contains(int)

Returns true when a visible-node index is inside this viewport.

public bool Contains(int VisibleNodeIndex)

Parameters

VisibleNodeIndex int

The 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

Other GroupGridViewport

The 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

Obj object

Returns

bool

true if obj and 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

Left GroupGridViewport

The left viewport.

Right GroupGridViewport

The 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

Left GroupGridViewport

The left viewport.

Right GroupGridViewport

The right viewport.

Returns

bool

True if the viewports are not equal; otherwise, false.