Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

PdfPageRange

OfficeIMO.Pdf

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

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.

Accepted by parameters 19

Constructors

public PdfPageRange(int firstPage, int lastPage) #

Creates an inclusive one-based PDF page range.

Parameters

firstPage int required
lastPage int required

Methods

Equals 2 overloads
public bool Equals(PdfPageRange other) #

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

Parameters

other OfficeIMO.Pdf.PdfPageRange required
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? required
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 required
lastPage int required
public 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 required
right OfficeIMO.Pdf.PdfPageRange required

Returns

bool
public static bool op_Inequality(PdfPageRange left, PdfPageRange right) #

Compares two page ranges for inequality.

Parameters

left OfficeIMO.Pdf.PdfPageRange required
right OfficeIMO.Pdf.PdfPageRange required

Returns

bool
public 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 required
public static PdfPageRange[] ParseMany(string pageRanges) #

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

Parameters

pageRanges string required

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? required
range OfficeIMO.Pdf.PdfPageRange required

Returns

bool
public 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? required
ranges OfficeIMO.Pdf.PdfPageRange[] required

Returns

bool

Properties

public int FirstPage { get; } #

First page in the inclusive one-based range.

public int LastPage { get; } #

Last page in the inclusive one-based range.

public int PageCount { get; } #

Number of pages in the range.