TextStudioGlyphChangeSet
public readonly struct TextStudioGlyphChangeSetSemantic glyph correspondence for a text replacement. A changed glyph exits or enters; a retained glyph stays visually continuous across the replacement.
Methods
Section titled “Methods”
IsOutgoingGlyphChanged(int)
Section titled “IsOutgoingGlyphChanged(int)”public bool IsOutgoingGlyphChanged(int glyphIndex)Reports whether an old-text glyph should receive exit behavior.
Parameters
| Name | Type |
|---|---|
glyphIndex |
System.Int32 |
Returns
System.Boolean
IsIncomingGlyphChanged(int)
Section titled “IsIncomingGlyphChanged(int)”public bool IsIncomingGlyphChanged(int glyphIndex)Reports whether a new-text glyph should receive entry behavior.
Parameters
| Name | Type |
|---|---|
glyphIndex |
System.Int32 |
Returns
System.Boolean
Properties
Section titled “Properties”
OutgoingChangedGlyphCount
Section titled “OutgoingChangedGlyphCount”public int OutgoingChangedGlyphCount { get; }Number of glyphs from the old text that should receive exit behavior.
Returns
System.Int32
IncomingChangedGlyphCount
Section titled “IncomingChangedGlyphCount”public int IncomingChangedGlyphCount { get; }Number of glyphs from the new text that should receive entry behavior.
Returns
System.Int32
HasChanges
Section titled “HasChanges”public bool HasChanges { get; }Whether the replacement changes at least one semantic glyph.
Returns
System.Boolean