Compartir a través de


VCCodeIDLCoClass.StartPointOf (Propiedad)

Obtiene el punto de inicio del objeto.

Espacio de nombres:  Microsoft.VisualStudio.VCCodeModel
Ensamblado:  Microsoft.VisualStudio.VCCodeModel (en Microsoft.VisualStudio.VCCodeModel.dll)

Sintaxis

'Declaración
ReadOnly Property StartPointOf ( _
    Part As vsCMPart, _
    Where As vsCMWhere _
) As TextPoint
TextPoint this[
    vsCMPart Part,
    vsCMWhere Where
] { get; }
property TextPoint^ StartPointOf[[InAttribute] vsCMPart Part, [InAttribute] vsCMWhere Where] {
    TextPoint^ get ([InAttribute] vsCMPart Part, [InAttribute] vsCMWhere Where);
}
abstract StartPointOf : 
        Part:vsCMPart * 
        Where:vsCMWhere -> TextPoint with get
JScript no admite propiedades indizadas.

Parámetros

  • Part
    Tipo: EnvDTE.vsCMPart
    Obligatorio.Valor de la enumeración vsCMPart que especifica qué parte de la definición o de la declaración se va a usar (bloque de atributos, cuerpo, etc.).

Valor de propiedad

Tipo: EnvDTE.TextPoint
Objeto TextPoint.

Comentarios

Vea Cómo: Compilar el código de ejemplo de extensibilidad del modelo de código de Visual C++ para obtener información sobre cómo compilar y ejecutar este ejemplo.

Ejemplos

Este ejemplo agrega un comentario al principio de una declaración de elemento de código.

Sub AddCommentAtBeginning()
    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.StartPointOf(vsCMPart.vsCMPartWhole)
    textPoint.CreateEditPoint().Insert("/*Comment*/")
End Sub

Seguridad de .NET Framework

Vea también

Referencia

VCCodeIDLCoClass Interfaz

Microsoft.VisualStudio.VCCodeModel (Espacio de nombres)