Compartir a través de


VCCodeIDLImportLib.StartPointOf (Propiedad)

Obtiene el punto de inicio del objeto primario.

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: 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: TextPoint
Un 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

VCCodeIDLImportLib Interfaz

Microsoft.VisualStudio.VCCodeModel (Espacio de nombres)