Skip to main content

ValueSpan<T> Struct

Definition​

Assembly:Avalonia.Base
Package:Avalonia

Pairing of value and positions sharing that value.

public struct ValueSpan<T>

Inheritance: ValueType -> ValueSpan<T>

Implements: IEquatable<ValueSpan<>>

Constructors​

NameDescription
ValueSpan<T>No summary available.

ValueSpan<T> Constructor​

public ValueSpan<T>(int start, int length, T value)

Parameters​

start int

length int

value T

Methods​

NameDescription
Equals (2 overloads)No summary available.
GetHashCodeNo summary available.
ToStringNo summary available.

Equals overloads​

Equals Method​

public bool Equals(Avalonia.Utilities.ValueSpan<T><T> other)
Parameters​

other Avalonia.Utilities.ValueSpan<T><T>

Returns​

bool

Equals Method​

public bool Equals(object obj)
Parameters​

obj object

Returns​

bool

GetHashCode Method​

public int GetHashCode()

Returns​

int

ToString Method​

public string ToString()

Returns​

string

Properties​

NameDescription
LengthGet's the length of the span.
StartGet's the start of the span.
ValueGet's the value of the span.

Length Property​

Get's the length of the span.

public int Length { get; set; }

Start Property​

Get's the start of the span.

public int Start { get; set; }

Value Property​

Get's the value of the span.

public T Value { get; set; }