VCCodeMacro.EndPointOf[vsCMPart, vsCMWhere] Propriedade

Definição

Obtém o ponto de extremidade do objeto.

public:
 property EnvDTE::TextPoint ^ EndPointOf[EnvDTE::vsCMPart, Microsoft::VisualStudio::VCCodeModel::vsCMWhere] { EnvDTE::TextPoint ^ get(EnvDTE::vsCMPart Part, Microsoft::VisualStudio::VCCodeModel::vsCMWhere Where); };
[System.Runtime.InteropServices.DispId(551)]
public EnvDTE.TextPoint EndPointOf[EnvDTE.vsCMPart Part, Microsoft.VisualStudio.VCCodeModel.vsCMWhere Where = Microsoft.VisualStudio.VCCodeModel.vsCMWhere.vsCMWhereDefault] { [System.Runtime.InteropServices.DispId(551)] [System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)] get; }
[<System.Runtime.InteropServices.DispId(551)>]
[<get: System.Runtime.InteropServices.DispId(551)>]
[<get: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)>]
member this.EndPointOf(EnvDTE.vsCMPart * Microsoft.VisualStudio.VCCodeModel.vsCMWhere) : EnvDTE.TextPoint
Public ReadOnly Property EndPointOf(Part As vsCMPart, Optional Where As vsCMWhere = Microsoft.VisualStudio.VCCodeModel.vsCMWhere.vsCMWhereDefault) As TextPoint

Parâmetros

Part
vsCMPart

Obrigatórios. Um vsCMPart valor que especifica qual parte da definição ou da declaração deve ser usada (bloco de atributos, corpo e assim por diante).

Where
vsCMWhere

Opcional. Um vsCMWhere valor que especifica se o TextPoint objeto é a definição ou a declaração.

Valor da propriedade

TextPoint

Um objeto TextPoint.

Atributos

Exemplos

Este exemplo adiciona um comentário ao final de uma declaração de elemento de código.

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  

Comentários

EndPointOf[] Recupera os pontos de texto com mais precisão do que a StartPoint propriedade.

Aplica-se a