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 Boolean Equals(OfficeTextFeatureSettings other) #BooleanIndicates whether the current object is equal to another object of the same type.
Parameters
- other OfficeIMO.Drawing.OfficeTextFeatureSettings
- An object to compare with this object.
Returns
true if the current object is equal to the other parameter; otherwise, false.
public override Boolean Equals(Object obj) #BooleanDetermines whether the specified object is equal to the current object.
Parameters
- obj System.Object
- The object to compare with the current object.
Returns
true if the specified object is equal to the current object; otherwise, false.
public override Int32 GetHashCode() #Int32Serves as the default hash function.
Returns
A hash code for the current object.
public 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.