Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeTextFeatureSettings

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Implements
IEquatable<OfficeTextFeatureSettings>
Modifiers sealed

Immutable OpenType feature selections used by the shared text-shaping contract.

Inheritance

  • Object
  • OfficeTextFeatureSettings

Remarks

Tags use the four-character OpenType representation. A value of zero disables a feature; positive values enable it or select an alternate. Features absent from the collection retain the shaping engine's script defaults.

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

OfficeTextFeatureSettings 2 overloads
public OfficeTextFeatureSettings() #

Creates an empty feature selection.

public OfficeTextFeatureSettings(IEnumerable<KeyValuePair<String, Int32>> features) #

Creates an immutable snapshot of feature tag values.

Parameters

features System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{System.String,System.Int32}} requiredposition: 0

Methods

Equals 2 overloads
public virtual Boolean Equals(OfficeTextFeatureSettings other) #
Returns: Boolean

Parameters

other OfficeIMO.Drawing.OfficeTextFeatureSettings requiredposition: 0
public override Boolean Equals(Object obj) #
Returns: Boolean

Parameters

obj System.Object requiredposition: 0
public override Int32 GetHashCode() #
Returns: Int32
public Boolean TryGetValue(String tag, out Int32 value) #
Returns: Boolean

Returns the explicit value for a feature tag.

Parameters

tag System.String requiredposition: 0
value System.Int32@ requiredposition: 1
public OfficeTextFeatureSettings With(String tag, Int32 value) #
Returns: OfficeTextFeatureSettings

Returns a new immutable selection with one feature value added or replaced.

Parameters

tag System.String requiredposition: 0
value System.Int32 requiredposition: 1

Properties

public static OfficeTextFeatureSettings Default { get; } #

No explicit feature overrides.

public IReadOnlyDictionary<String, Int32> Features { get; } #

Explicit OpenType feature values keyed by four-character tag.

public Boolean IsDefault { get; } #

True when no feature differs from the shaping engine's defaults.