Class
OfficeFontUnicodeRangeSet
OfficeIMO.Drawing
Immutable bounded set of Unicode scalar ranges used by scoped font selection.
Inheritance
- object
- OfficeFontUnicodeRangeSet
Usage
Explore 6 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.
Returned or exposed by 2
- Property OfficeFontFace.UnicodeRanges
- Property OfficeFontUnicodeRangeSet.All
Accepted by parameters 4
Constructors
public OfficeFontUnicodeRangeSet(IEnumerable<OfficeFontUnicodeRange> ranges) #Creates a normalized range set.
Parameters
- ranges System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficeFontUnicodeRange>
Methods
public bool Contains(int scalar) #Returns true when the scalar is included.
Parameters
- scalar int
Returns
boolpublic bool ContainsText(string? text) #Returns true when every scalar in the supplied text is included.
Parameters
- text string?
Returns
boolEquals 2 overloads
public bool Equals(OfficeFontUnicodeRangeSet? other) #Indicates whether the current object is equal to another object of the same type.
Parameters
- other OfficeIMO.Drawing.OfficeFontUnicodeRangeSet?
- 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) #Determines whether the specified object is equal to the current object.
Parameters
- obj object?
- The object to compare with the current object.
Returns
bool true if the specified object is equal to the current object; otherwise, false.public override int GetHashCode() #Serves as the default hash function.
Returns
int A hash code for the current object.public static bool TryParseCss(string? value, out OfficeFontUnicodeRangeSet? ranges) #Parses a CSS unicode-range descriptor such as U+0000-00FF or U+4??.
Parameters
- value string?
- ranges OfficeIMO.Drawing.OfficeFontUnicodeRangeSet?
Returns
bool