API Reference
PdfPageRange
Represents an inclusive one-based PDF page range.
Inheritance
- ValueType
- PdfPageRange
Usage
Explore 26 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 20
- Method PdfDocumentPages.Delete
- Method PdfDocumentPages.Duplicate
- Method PdfDocumentPages.Extract
- Method PdfDocumentPages.Move
- Method PdfDocumentPages.Rotate
- Method PdfDocumentPages.Split
- Method PdfDocumentPages.SplitResult
- 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(Int32 firstPage, Int32 lastPage) #Creates an inclusive one-based PDF page range.
Parameters
- firstPage System.Int32
- lastPage System.Int32
Methods
public Boolean Equals(PdfPageRange other) #BooleanIndicates 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
true if the current object is equal to the other parameter; otherwise, false.
public override Boolean Equals(Object? obj) #BooleanIndicates whether this instance and a specified object are equal.
Parameters
- obj System.Object?
- The object to compare with the current instance.
Returns
true if obj and this instance are the same type and represent the same value; otherwise, false.
public static PdfPageRange From(Int32 firstPage, Int32 lastPage) #PdfPageRangeCreates an inclusive one-based PDF page range.
Parameters
- firstPage System.Int32
- lastPage System.Int32
public override Int32 GetHashCode() #Int32Returns the hash code for this instance.
Returns
A 32-bit signed integer that is the hash code for this instance.
public static Boolean op_Equality(PdfPageRange left, PdfPageRange right) #BooleanCompares two page ranges for equality.
Parameters
- left OfficeIMO.Pdf.PdfPageRange
- right OfficeIMO.Pdf.PdfPageRange
public static Boolean op_Inequality(PdfPageRange left, PdfPageRange right) #BooleanCompares two page ranges for inequality.
Parameters
- left OfficeIMO.Pdf.PdfPageRange
- right OfficeIMO.Pdf.PdfPageRange
public static PdfPageRange Parse(String pageRange) #PdfPageRangeParses one inclusive one-based page range from text such as 3, 1-3, or 1..3.
Parameters
- pageRange System.String
public static PdfPageRange[] ParseMany(String pageRanges) #PdfPageRange[]Parses comma- or semicolon-separated inclusive one-based page ranges, preserving caller order.
Parameters
- pageRanges System.String
public override String ToString() #StringReturns the fully qualified type name of this instance.
Returns
The fully qualified type name.
public static Boolean TryParse(String? pageRange, out PdfPageRange range) #BooleanAttempts to parse one inclusive one-based page range from text such as 3, 1-3, or 1..3.
Parameters
- pageRange System.String?
- range OfficeIMO.Pdf.PdfPageRange
public static Boolean TryParseMany(String? pageRanges, out PdfPageRange[] ranges) #BooleanAttempts to parse comma- or semicolon-separated inclusive one-based page ranges, preserving caller order.
Parameters
- pageRanges System.String?
- ranges OfficeIMO.Pdf.PdfPageRange[]