Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeFontUnicodeRangeSet

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Implements
IEquatable<OfficeFontUnicodeRangeSet>
Modifiers
sealed

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

Accepted by parameters 4

Constructors

public OfficeFontUnicodeRangeSet(IEnumerable<OfficeFontUnicodeRange> ranges) #

Creates a normalized range set.

Parameters

ranges System.Collections.Generic.IEnumerable<OfficeIMO.Drawing.OfficeFontUnicodeRange> required

Methods

public bool Contains(int scalar) #

Returns true when the scalar is included.

Parameters

scalar int required

Returns

bool
public bool ContainsText(string? text) #

Returns true when every scalar in the supplied text is included.

Parameters

text string? required

Returns

bool
Equals 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? 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) #

Determines whether the specified object is equal to the current object.

Parameters

obj object? required
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? required
ranges OfficeIMO.Drawing.OfficeFontUnicodeRangeSet? required

Returns

bool

Properties

public static OfficeFontUnicodeRangeSet All { get; } #

All Unicode scalar values.

public IReadOnlyList<OfficeFontUnicodeRange> Ranges { get; } #

Normalized, ordered ranges.

public bool IsAll { get; } #

True when this set covers every Unicode scalar.