iText 8.0.5 API
iText.Layout.Font.Range Class Reference

Class represents ordered list of SubRange. More...

Public Member Functions

virtual bool  Contains (int n)
  Binary search over ordered segments. More...
 
override bool  Equals (Object o)
 
override int  GetHashCode ()
 
override String  ToString ()
 
virtual int  CompareTo (Range.SubRange o)
 
virtual int  CompareTo (int n)
 
override bool  Equals (Object o)
 
override int  GetHashCode ()
 
override String  ToString ()
 

Detailed Description

Class represents ordered list of SubRange.

Class represents ordered list of SubRange. This class is used in FontInfo as internal field and in one of the overloads of the FontProvider.AddFont(System.String, System.String, Range) method as range of characters to be used in font.

To create a custom Range instance RangeBuilder shall be used.

Member Function Documentation

◆ Contains()

virtual bool iText.Layout.Font.Range.Contains ( int  n )
inlinevirtual

Binary search over ordered segments.

Parameters
n numeric character reference based on the character's Unicode code point
Returns
true if this Range contains the specified code point, otherwise false