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:
public class DocumentElementStateBitVector
Inheritance: objectDocumentElementStateBitVector
Constructors
Creates a bit vector with no state flags set.
public DocumentElementStateBitVector()
Creates a bit vector with the same state flags as another vector.
public DocumentElementStateBitVector(DocumentElementStateBitVector source)
The vector whose state flags are copied.
Properties
Gets the combined layout-state flags stored in this vector.
public DocumentElementStates Data { get; }
Determines whether the bit, corresponding to the specified key is set
Methods
Gets a hash code derived from the stored layout-state flags.
public override int GetHashCode()
The hash code for this vector's state flags.
Overrides:
Clears all currently set bits in this vector.
public void Reset()
Operators
Determines whether two state vectors contain different flags.
public static bool operator !=(DocumentElementStateBitVector vector1, DocumentElementStateBitVector vector2)
The first vector to compare.
vector2DocumentElementStateBitVectorThe second vector to compare.
Returns:true if the vectors contain different flags; otherwise, false.
Determines whether two state vectors contain the same flags.
public static bool operator ==(DocumentElementStateBitVector vector1, DocumentElementStateBitVector vector2)
The first vector to compare.
vector2DocumentElementStateBitVectorThe second vector to compare.
Returns:true if both vectors contain the same flags; otherwise, false.