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.

适用于