TextProviderTranslateModes Enum
Specifies the modes for translating character indices within a ITextProvider.
[Flags]
public enum TextProviderTranslateModes
Fields
Name | Description |
---|---|
FromSourceText | Translate from source text to layout text. |
PositiveTracking | This flag can be combined with FromSourceText or ToSourceText. When used with FromSourceText, this flag indicates that the resulting character index should be negative (a bitwise complement) if the character index should have negative (leftward) affinity around a spacer; otherwise, a positive value indicates positive (rightward) affinity around a spacer. When used with ToSourceText, this flag indicates that the resulting character index should track positive (rightward) around any gap in characters scenario. |
ToSourceText | Translate from layout text to source text. |