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 命名空間

其他資源

HOW TO:編譯和執行 Automation 物件模型程式碼範例