Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Struct

PdfPageRange

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Source revision 804a7612eee4 with working tree changes
Base ValueType
Implements
IEquatable<PdfPageRange>
Modifiers sealed

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.

Accepted by parameters 20

Constructors

public PdfPageRange(Int32 firstPage, Int32 lastPage) #

Creates an inclusive one-based PDF page range.

Parameters

firstPage System.Int32 requiredposition: 0
lastPage System.Int32 requiredposition: 1

Methods

Equals 2 overloads
public Boolean Equals(PdfPageRange other) #
Returns: Boolean

Indicates whether the current object is equal to another object of the same type.

Parameters

other OfficeIMO.Pdf.PdfPageRange requiredposition: 0
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) #
Returns: Boolean

Indicates whether this instance and a specified object are equal.

Parameters

obj System.Object? requiredposition: 0
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) #
Returns: PdfPageRange

Creates an inclusive one-based PDF page range.

Parameters

firstPage System.Int32 requiredposition: 0
lastPage System.Int32 requiredposition: 1
public override Int32 GetHashCode() #
Returns: Int32

Returns 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) #
Returns: Boolean

Compares two page ranges for equality.

Parameters

left OfficeIMO.Pdf.PdfPageRange requiredposition: 0
right OfficeIMO.Pdf.PdfPageRange requiredposition: 1
public static Boolean op_Inequality(PdfPageRange left, PdfPageRange right) #
Returns: Boolean

Compares two page ranges for inequality.

Parameters

left OfficeIMO.Pdf.PdfPageRange requiredposition: 0
right OfficeIMO.Pdf.PdfPageRange requiredposition: 1
public static PdfPageRange Parse(String pageRange) #
Returns: PdfPageRange

Parses one inclusive one-based page range from text such as 3, 1-3, or 1..3.

Parameters

pageRange System.String requiredposition: 0
public static PdfPageRange[] ParseMany(String pageRanges) #
Returns: PdfPageRange[]

Parses comma- or semicolon-separated inclusive one-based page ranges, preserving caller order.

Parameters

pageRanges System.String requiredposition: 0
public override String ToString() #
Returns: String

Returns the fully qualified type name of this instance.

Returns

The fully qualified type name.

public static Boolean TryParse(String? pageRange, out PdfPageRange range) #
Returns: Boolean

Attempts to parse one inclusive one-based page range from text such as 3, 1-3, or 1..3.

Parameters

pageRange System.String? requiredposition: 0
range OfficeIMO.Pdf.PdfPageRange requiredposition: 1
public static Boolean TryParseMany(String? pageRanges, out PdfPageRange[] ranges) #
Returns: Boolean

Attempts to parse comma- or semicolon-separated inclusive one-based page ranges, preserving caller order.

Parameters

pageRanges System.String? requiredposition: 0
ranges OfficeIMO.Pdf.PdfPageRange[] requiredposition: 1

Properties

public Int32 FirstPage { get; } #

First page in the inclusive one-based range.

public Int32 LastPage { get; } #

Last page in the inclusive one-based range.

public Int32 PageCount { get; } #

Number of pages in the range.