VCCodeEvent.GetStartPoint(vsCMPart) 方法

定義

取得定義程式碼項目定義開頭的 TextPoint 物件。Gets a TextPoint object that defines the beginning of the code element definition.

EnvDTE::TextPoint GetStartPoint(EnvDTE::vsCMPart Part = EnvDTE.vsCMPart.vsCMPartWholeWithAttributes);
[System.Runtime.InteropServices.DispId(15)]
[System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)]
public EnvDTE.TextPoint GetStartPoint (EnvDTE.vsCMPart Part = EnvDTE.vsCMPart.vsCMPartWholeWithAttributes);
[<System.Runtime.InteropServices.DispId(15)>]
[<System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)>]
abstract member GetStartPoint : EnvDTE.vsCMPart -> EnvDTE.TextPoint
Public Function GetStartPoint (Optional Part As vsCMPart = EnvDTE.vsCMPart.vsCMPartWholeWithAttributes) As TextPoint

參數

Part
vsCMPart

選擇性。Optional. 指定要擷取的程式碼部分之 vsCMPart 常數。A vsCMPart constant specifying the portion of the code to retrieve.

傳回

TextPoint

TextPoint 物件。A TextPoint object.

屬性

備註

GetStartPointGetEndPoint 方法會傳回 TextPoint 物件,該物件表示指定之程式碼專案定義的開頭和結尾。The GetStartPoint and GetEndPoint methods return a TextPoint object that represents the beginning and end of a specified code element definition. Part參數會定義要傳回的程式碼元素定義。The Part parameter defines the code element definition to return.

適用於