Share via


VCCodeIDLImport.EndPointOf Property

Gets the end point of the parent object.

Namespace:  Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

Syntax

'Declaration
ReadOnly Property EndPointOf ( _
    Part As vsCMPart, _
    Where As vsCMWhere _
) As TextPoint
    Get
TextPoint this[
    vsCMPart Part,
    vsCMWhere Where
] { get; }
property TextPoint^ EndPointOf[[InAttribute] vsCMPart Part, [InAttribute] vsCMWhere Where] {
    TextPoint^ get ([InAttribute] vsCMPart Part, [InAttribute] vsCMWhere Where);
}
abstract EndPointOf : TextPoint
JScript does not support indexed properties.

Parameters

Property Value

Type: EnvDTE.TextPoint
A TextPoint object.

Remarks

EndPointOf retrieves text points with more precision than the StartPoint property.

See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.

Examples

This example adds a comment at the end of a code element declaration.

Sub AddCommentAtEnd()
    Dim vcElement As VCCodeElement
    Dim vcElements As VCCodeElements
    Dim textPoint As TextPoint
    vcElements = DTE.Solution.Item(1).CodeModel.Classes
    vcElement = vcElements.Item(1)
    textPoint = vcElement.EndPointOf(vsCMPart.vsCMPartWhole)
    textPoint.CreateEditPoint().Insert("/*Comment*/")
End Sub

.NET Framework Security

See Also

Reference

VCCodeIDLImport Interface

Microsoft.VisualStudio.VCCodeModel Namespace