Skip to content

TextStudioGlyphChangeSet

StructTextStudioTextStudio
public readonly struct TextStudioGlyphChangeSet

Semantic glyph correspondence for a text replacement. A changed glyph exits or enters; a retained glyph stays visually continuous across the replacement.

public bool IsOutgoingGlyphChanged(int glyphIndex)

Reports whether an old-text glyph should receive exit behavior.

Parameters

Name Type
glyphIndex System.Int32

Returns

System.Boolean

public bool IsIncomingGlyphChanged(int glyphIndex)

Reports whether a new-text glyph should receive entry behavior.

Parameters

Name Type
glyphIndex System.Int32

Returns

System.Boolean

public int OutgoingChangedGlyphCount { get; }

Number of glyphs from the old text that should receive exit behavior.

Returns

System.Int32

public int IncomingChangedGlyphCount { get; }

Number of glyphs from the new text that should receive entry behavior.

Returns

System.Int32

public bool HasChanges { get; }

Whether the replacement changes at least one semantic glyph.

Returns

System.Boolean