PositionAffinity Enumeration

Describes whether a position in a ITextBuffer that can be thought of as lying between two characters is coupled to the preceding character or the following character.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)


Public Enumeration PositionAffinity
public enum PositionAffinity
public enum class PositionAffinity
type PositionAffinity
public enum PositionAffinity


Member name Description
Predecessor The position is coupled to the preceding character.
Successor The position is coupled to the following character.


This enumeration is used to disambiguate points in methods such as the following:

See Also


Microsoft.VisualStudio.Text Namespace