Share via


CaretPosition Constructor

Initializes a new instance of a CaretPosition.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Public Sub New ( _
    bufferPosition As VirtualSnapshotPoint, _
    mappingPoint As IMappingPoint, _
    caretAffinity As PositionAffinity _
)
public CaretPosition(
    VirtualSnapshotPoint bufferPosition,
    IMappingPoint mappingPoint,
    PositionAffinity caretAffinity
)
public:
CaretPosition(
    VirtualSnapshotPoint bufferPosition, 
    IMappingPoint^ mappingPoint, 
    PositionAffinity caretAffinity
)
new : 
        bufferPosition:VirtualSnapshotPoint * 
        mappingPoint:IMappingPoint * 
        caretAffinity:PositionAffinity -> CaretPosition
public function CaretPosition(
    bufferPosition : VirtualSnapshotPoint, 
    mappingPoint : IMappingPoint, 
    caretAffinity : PositionAffinity
)

Parameters

.NET Framework Security

See Also

Reference

CaretPosition Structure

Microsoft.VisualStudio.Text.Editor Namespace