[]
Represents the position of an operator in a content stream.
public struct PdfOperatorPosition : IEquatable<PdfOperatorPosition>
The empty position;
public static readonly PdfOperatorPosition Empty
The index in a content stream. In most cases the Index will have one element, the position of the operator in the page (the "root") content stream. If the operator is in the content stream of form XObject used in the page content stream then Index will contain 2 elements: 0 - index of "Do" operator used to render form XObject in the page content stream 1 - index of the operator in the form XObject content stream.
public int[] Index
Gets a value indicating whether this position is empty.
public bool IsEmpty { get; }
Gets the length of Index.
public int Length { get; }
public PdfOperatorPosition Clone()
Compares two PdfOperatorPosition objects.
public static int Compare(PdfOperatorPosition v1, PdfOperatorPosition v2)
Create the PdfOperatorPosition with index of specified length.
public static PdfOperatorPosition Create(int length = 1)
length
intThe index length.
The PdfOperatorPosition structure.
Determines whether two PdfOperatorPosition instances are equal.
public bool Equals(PdfOperatorPosition other)
other
PdfOperatorPositionThe PdfOperatorPosition to compare with the current object.
true if the specified object is equal to the current object; otherwise, false.
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
obj
objectThe object to compare with the current object.
true if the specified object is equal to the current object; otherwise, false.
Returns a hash code for the current object.
public override int GetHashCode()
A hash code for the current object.
Increments the index.
public void Inc()
Increments the index on specified value.
public void Inc(int value, int level)
value
intThe increment value.
level
intThe index to increment.
Increments the index on specified value.
public void Inc(int value)
value
intThe increment value.
Checks whether a specified PdfOperatorPosition points to the same content stream as current PdfOperatorPosition.
public bool IsSameContentStreamWith(PdfOperatorPosition other)
other
PdfOperatorPositionThe PdfOperatorPosition to check.
true if other
points to the same content stream; false otherwise.
Ends level.
public void Pop()
Starts new level.
public void Push()
public override string ToString()
Tries to parse the PdfOperatorPosition from the string.
public static bool TryParse(string s, out PdfOperatorPosition value)
s
stringvalue
PdfOperatorPositionThe equality operator.
public static bool operator ==(PdfOperatorPosition v1, PdfOperatorPosition v2)
Greater than operator.
public static bool operator >(PdfOperatorPosition v1, PdfOperatorPosition v2)
Greater or equal than operator.
public static bool operator >=(PdfOperatorPosition v1, PdfOperatorPosition v2)
The inequality operator.
public static bool operator !=(PdfOperatorPosition v1, PdfOperatorPosition v2)
Less than operator.
public static bool operator <(PdfOperatorPosition v1, PdfOperatorPosition v2)
Less or equal than operator.
public static bool operator <=(PdfOperatorPosition v1, PdfOperatorPosition v2)