• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Struct TextWhitespace

A whitespace token encountered during text extraction (spec §9.2, Table 91). Represents a single whitespace character or a run of whitespace with its position.

Implements
IEquatable<TextWhitespace>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: DRIT.Pdf.Content
Assembly: DRIT.Pdf.dll
Syntax
public readonly struct TextWhitespace : IEquatable<TextWhitespace>

Constructors

TextWhitespace(char, int, PdfPoint)

Initializes a whitespace token.

Declaration
public TextWhitespace(char character, int count, PdfPoint position)
Parameters
Type Name Description
char character
int count
PdfPoint position

Properties

Character

Gets the whitespace character.

Declaration
public char Character { get; }
Property Value
Type Description
char

Count

Gets the number of consecutive whitespace characters.

Declaration
public int Count { get; }
Property Value
Type Description
int

Position

Gets the position of the whitespace in the page coordinate system.

Declaration
public PdfPoint Position { get; }
Property Value
Type Description
PdfPoint

Text

Gets the expanded whitespace string.

Declaration
public string Text { get; }
Property Value
Type Description
string

Methods

Equals(TextWhitespace)

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

Declaration
public bool Equals(TextWhitespace other)
Parameters
Type Name Description
TextWhitespace other

An object to compare with this object.

Returns
Type Description
bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj

The object to compare with the current instance.

Returns
Type Description
bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

Overrides
ValueType.Equals(object)

GetHashCode()

Returns the hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A 32-bit signed integer that is the hash code for this instance.

Overrides
ValueType.GetHashCode()

ToString()

Returns the fully qualified type name of this instance.

Declaration
public override string ToString()
Returns
Type Description
string

The fully qualified type name.

Overrides
ValueType.ToString()

Operators

operator ==(TextWhitespace, TextWhitespace)

Equality operator.

Declaration
public static bool operator ==(TextWhitespace a, TextWhitespace b)
Parameters
Type Name Description
TextWhitespace a
TextWhitespace b
Returns
Type Description
bool

operator !=(TextWhitespace, TextWhitespace)

Inequality operator.

Declaration
public static bool operator !=(TextWhitespace a, TextWhitespace b)
Parameters
Type Name Description
TextWhitespace a
TextWhitespace b
Returns
Type Description
bool

Implements

IEquatable<T>
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX