New to Telerik UI for WinForms? Start a free 30-day trial

Stores the layout-state flags of a document element in a compact bit vector.

Definition

Namespace:Telerik.WinForms.Documents.Layout

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class DocumentElementStateBitVector

Inheritance: objectDocumentElementStateBitVector

Constructors

Creates a bit vector with no state flags set.

C#
public DocumentElementStateBitVector()

Creates a bit vector with the same state flags as another vector.

C#
public DocumentElementStateBitVector(DocumentElementStateBitVector source)
Parameters:sourceDocumentElementStateBitVector

The vector whose state flags are copied.

Properties

Gets the combined layout-state flags stored in this vector.

C#
public DocumentElementStates Data { get; }

Determines whether the bit, corresponding to the specified key is set

C#
public bool this[DocumentElementStates key] { get; set; }
Parameters:keyDocumentElementStates

Methods

Determines whether another object is a state vector containing the same flags.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with this vector.

Returns:

bool

true if obj is a vector with the same flags; otherwise, false.

Overrides: object.Equals(object)

Gets a hash code derived from the stored layout-state flags.

C#
public override int GetHashCode()
Returns:

int

The hash code for this vector's state flags.

Overrides: object.GetHashCode()

Clears all currently set bits in this vector.

C#
public void Reset()

Operators

Determines whether two state vectors contain different flags.

C#
public static bool operator !=(DocumentElementStateBitVector vector1, DocumentElementStateBitVector vector2)
Parameters:vector1DocumentElementStateBitVector

The first vector to compare.

vector2DocumentElementStateBitVector

The second vector to compare.

Returns:

bool

true if the vectors contain different flags; otherwise, false.

Determines whether two state vectors contain the same flags.

C#
public static bool operator ==(DocumentElementStateBitVector vector1, DocumentElementStateBitVector vector2)
Parameters:vector1DocumentElementStateBitVector

The first vector to compare.

vector2DocumentElementStateBitVector

The second vector to compare.

Returns:

bool

true if both vectors contain the same flags; otherwise, false.