Table of Contents

Struct PdfRange

Namespace
UglyToad.PdfPig.Core
Assembly
UglyToad.PdfPig.Core.dll

This class will be used to signify a range. a(min) <= a* <= a(max)

public struct PdfRange
Inherited Members

Constructors

PdfRange(IEnumerable<decimal>)

Constructor assumes a starting index of 0.

public PdfRange(IEnumerable<decimal> range)

Parameters

range IEnumerable<decimal>

The array that describes the range.

PdfRange(IEnumerable<decimal>, int)

Constructor with an index into an array. Because some arrays specify multiple ranges ie [0, 1, 0, 2, 2, 3]. It is convenient for this class to take an index into an array. So if you want this range to represent 0, 2 in the above example then you would say new PDRange(array, 1).

public PdfRange(IEnumerable<decimal> range, int index)

Parameters

range IEnumerable<decimal>

The array that describes the index

index int

The range index into the array for the start of the range.

PdfRange(IEnumerable<double>)

Constructor assumes a starting index of 0.

public PdfRange(IEnumerable<double> range)

Parameters

range IEnumerable<double>

The array that describes the range.

PdfRange(IEnumerable<double>, int)

Constructor with an index into an array. Because some arrays specify multiple ranges ie [0, 1, 0, 2, 2, 3]. It is convenient for this class to take an index into an array. So if you want this range to represent 0, 2 in the above example then you would say new PDRange(array, 1).

public PdfRange(IEnumerable<double> range, int index)

Parameters

range IEnumerable<double>

The array that describes the index

index int

The range index into the array for the start of the range.

Properties

Max

The maximum value of the range.

public double Max { get; }

Property Value

double

Min

The minimum value of the range.

public double Min { get; }

Property Value

double