Bagikan melalui


CodeDomDesignerData.CaretPosition Property

Gets or sets the recommended caret placement position for the member to which this object is attached.

Namespace:  Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
Public Overridable Property CaretPosition As Point
public virtual Point CaretPosition { get; set; }
public:
virtual property Point CaretPosition {
    Point get ();
    void set (Point value);
}
abstract CaretPosition : Point with get, set
override CaretPosition : Point with get, set
function get CaretPosition () : Point
function set CaretPosition (value : Point)

Property Value

Type: System.Drawing.Point
The recommended caret position.

Remarks

This method will return Empty if the recommended caret position is unknown.

.NET Framework Security

See Also

Reference

CodeDomDesignerData Class

Microsoft.VisualStudio.Shell.Design.Serialization.CodeDom Namespace