PdfPageRange
OfficeIMO.Pdf
Represents an inclusive one-based PDF page range.
Inheritance
- ValueType
- PdfPageRange
Usage
Explore 25 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 6
- Property PdfBookmarkPageRange.PageRange
- Property PdfLogicalTableTextExportOptions.PageRanges
- Method PdfPageRange.From
- Method PdfPageRange.Parse
- Method PdfPageRange.ParseMany
- Property PdfPageSelection.Ranges
Accepted by parameters 19
- Method PdfDocumentPages.Delete
- Method PdfDocumentPages.Duplicate
- Method PdfDocumentPages.Extract
- Method PdfDocumentPages.Move
- Method PdfDocumentPages.Rotate
- Method PdfDocumentPages.Split
- Method PdfImageStampOptions.UsePageRange
- Method PdfImageStampOptions.UsePageRanges
- Method PdfPageRange.Equals
- Method PdfPageRange.op_Equality
- Method PdfPageRange.op_Equality
- Method PdfPageRange.op_Inequality
- Method PdfPageRange.op_Inequality
- Method PdfPageRange.TryParse
- Method PdfPageRange.TryParseMany
- Method PdfPageSelection.From
- Method PdfPageSelection.FromRanges
- Method PdfTextStampOptions.UsePageRange
- Method PdfTextStampOptions.UsePageRanges
Constructors
public PdfPageRange(int firstPage, int lastPage) #Creates an inclusive one-based PDF page range.
Parameters
- firstPage int
- lastPage int
Methods
public bool Equals(PdfPageRange other) #Indicates whether the current object is equal to another object of the same type.
Parameters
- other OfficeIMO.Pdf.PdfPageRange
- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.public override bool Equals(object? obj) #Indicates whether this instance and a specified object are equal.
Parameters
- obj object?
- The object to compare with the current instance.
Returns
bool true if obj and this instance are the same type and represent the same value; otherwise, false.public static PdfPageRange From(int firstPage, int lastPage) #Creates an inclusive one-based PDF page range.
Parameters
- firstPage int
- lastPage int
Returns
PdfPageRangepublic override int GetHashCode() #Returns the hash code for this instance.
Returns
int A 32-bit signed integer that is the hash code for this instance.public static bool op_Equality(PdfPageRange left, PdfPageRange right) #Compares two page ranges for equality.
Parameters
- left OfficeIMO.Pdf.PdfPageRange
- right OfficeIMO.Pdf.PdfPageRange
Returns
boolpublic static bool op_Inequality(PdfPageRange left, PdfPageRange right) #Compares two page ranges for inequality.
Parameters
- left OfficeIMO.Pdf.PdfPageRange
- right OfficeIMO.Pdf.PdfPageRange
Returns
boolpublic static PdfPageRange Parse(string pageRange) #Parses one inclusive one-based page range from text such as 3, 1-3, or 1..3.
Parameters
- pageRange string
Returns
PdfPageRangepublic static PdfPageRange[] ParseMany(string pageRanges) #Parses comma- or semicolon-separated inclusive one-based page ranges, preserving caller order.
Parameters
- pageRanges string
Returns
PdfPageRange[]public override string ToString() #Returns the fully qualified type name of this instance.
Returns
string The fully qualified type name.public static bool TryParse(string? pageRange, out PdfPageRange range) #Attempts to parse one inclusive one-based page range from text such as 3, 1-3, or 1..3.
Parameters
- pageRange string?
- range OfficeIMO.Pdf.PdfPageRange
Returns
boolpublic static bool TryParseMany(string? pageRanges, out PdfPageRange[] ranges) #Attempts to parse comma- or semicolon-separated inclusive one-based page ranges, preserving caller order.
Parameters
- pageRanges string?
- ranges OfficeIMO.Pdf.PdfPageRange[]
Returns
bool