Breakpoint2.FunctionColumnOffset 属性

获取距离函数断点名称的列偏移量。

命名空间:  EnvDTE80
程序集:  EnvDTE80(在 EnvDTE80.dll 中)

语法

声明
ReadOnly Property FunctionColumnOffset As Integer
    Get
int FunctionColumnOffset { get; }
property int FunctionColumnOffset {
    int get ();
}
abstract FunctionColumnOffset : int
function get FunctionColumnOffset () : int

属性值

类型:System.Int32
一个包含距离函数断点名称的列偏移量的整数。

实现

Breakpoint.FunctionColumnOffset

备注

有关更多信息,请参见**“文件”->“新建断点”**对话框。

示例

下面的示例演示如何使用 FunctionColumnOffset 属性。

测试此属性:

  1. 在目标应用程序中设置一个断点。

  2. 运行外接程序。

public static void FunctionColumnOffset(EnvDTE80.DTE2 dte)
{
    // Setup debug Output window.
    Window w = (Window)dte.Windows.Item(EnvDTE.Constants.vsWindowKindOutput);
    w.Visible = true;
    OutputWindow ow = (OutputWindow)w.Object;
    OutputWindowPane owp = ow.OutputWindowPanes.Add("FunctionColumnOffset property: ");
    owp.Activate();

    // dte is a reference to the DTE2 object passed to you by the
    // OnConnection method that you implement when you create an Add-in.
    EnvDTE80.Debugger2 debugger = (EnvDTE80.Debugger2)dte.Debugger;
    owp.OutputString("\n FunctionColumnOffset: " +
                     debugger.Breakpoints.Item(1).FunctionColumnOffset.ToString());
    owp.OutputString("\n FunctionLineOffset: " +
                     debugger.Breakpoints.Item(1).FunctionLineOffset.ToString());
}

.NET Framework 安全性

请参见

参考

Breakpoint2 接口

FunctionColumnOffset 重载

EnvDTE80 命名空间

其他资源

如何:编译和运行自动化对象模型代码示例