Partager via


VCCodeIDLImport.StartPointOf, propriété

Obtient le point de départ de l'objet parent.

Espace de noms :  Microsoft.VisualStudio.VCCodeModel
Assembly :  Microsoft.VisualStudio.VCCodeModel (dans Microsoft.VisualStudio.VCCodeModel.dll)

Syntaxe

'Déclaration
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 ne prend pas en charge les propriétés indexées.

Paramètres

  • Part
    Type : vsCMPart

    Obligatoire. Valeur vsCMPart indiquant quelle partie de la définition ou de la déclaration doit être utilisée (blocs d'attributs, corps etc.).

Valeur de propriété

Type : TextPoint
Objet TextPoint.

Notes

Consultez Comment : compiler l'exemple de code pour l'extensibilité du modèle de code Visual C++ pour plus d'informations sur la compilation et l'exécution de cet exemple.

Exemples

Cet exemple ajoute un commentaire au début d'une déclaration d'élément de code.

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

Sécurité .NET Framework

Voir aussi

Référence

VCCodeIDLImport Interface

Microsoft.VisualStudio.VCCodeModel, espace de noms