API Reference
OfficeTextFeatureSettings
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.
Returned or exposed by
- Property OfficeDrawingText.FeatureSettings
- Method OfficeTextFeatureSettings.With
- Property OfficeTextFeatureSettings.Default
- Property OfficeTextShapingRequest.FeatureSettings
Accepted by parameters
- Method OfficeTextFeatureSettings.Equals
- Constructor OfficeTextShapingRequest.OfficeTextShapingRequest
- Constructor OfficeTextShapingRequest.OfficeTextShapingRequest
Constructors
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}}
Methods
public override Int32 GetHashCode() #Int32public Boolean TryGetValue(String tag, out Int32 value) #BooleanReturns the explicit value for a feature tag.
Parameters
- tag System.String
- value System.Int32@
public OfficeTextFeatureSettings With(String tag, Int32 value) #OfficeTextFeatureSettingsReturns a new immutable selection with one feature value added or replaced.
Parameters
- tag System.String
- value System.Int32
Inherited Methods
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.