[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.TextMap.TextLineFragment

Struct TextLineFragment

Namespace
GrapeCity.Documents.Pdf.TextMap
Assembly
GcDocs.Pdf.dll

Represents a range of characters in a ITextLine.

public struct TextLineFragment : IEquatable<TextLineFragment>
Implements
System.IEquatable<T><TextLineFragment>
Inherited Members
System.ValueType.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()

Constructors

TextLineFragment(int, int, int)

Initialize a new instance of the TextLineFragment class.

public TextLineFragment(int lineIndex, int startIndex, int length)

Parameters

lineIndex int

The value of LineIndex.

startIndex int

The value of StartIndex.

length int

The value of Length.

Fields

Length

The number of ITextChars in this fragment. A value of -1 indicates that this fragment includes all characters from StartIndex to the end of the line.

public int Length

Field Value

int

LineIndex

The index of the ITextLine in the ITextMap.

public int LineIndex

Field Value

int

StartIndex

The index of the first ITextChar in the ITextLine.

public int StartIndex

Field Value

int

Methods

Equals(TextLineFragment)

public bool Equals(TextLineFragment other)

Parameters

other TextLineFragment

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Operators

operator ==(TextLineFragment, TextLineFragment)

Tests whether two specified TextLineFragment objects are equivalent.

public static bool operator ==(TextLineFragment v1, TextLineFragment v2)

Parameters

v1 TextLineFragment
v2 TextLineFragment

Returns

bool

operator !=(TextLineFragment, TextLineFragment)

Tests whether two specified TextLineFragment objects are NOT equivalent.

public static bool operator !=(TextLineFragment v1, TextLineFragment v2)

Parameters

v1 TextLineFragment
v2 TextLineFragment

Returns

bool