Breakpoint.FunctionColumnOffset 屬性

定義

表示函式中斷點名稱的資料行位移。

public:
 property int FunctionColumnOffset { int get(); };
public:
 property int FunctionColumnOffset { int get(); };
[System.Runtime.InteropServices.DispId(104)]
public int FunctionColumnOffset { [System.Runtime.InteropServices.DispId(104)] get; }
[<System.Runtime.InteropServices.DispId(104)>]
[<get: System.Runtime.InteropServices.DispId(104)>]
member this.FunctionColumnOffset : int
Public ReadOnly Property FunctionColumnOffset As Integer

屬性值

Int32

代表函式中斷點名稱之資料行位移的整數值。

屬性

範例

下列範例示範如何使用 FunctionColumnOffset 屬性。

public static void FunctionColumnOffset(DTE 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 Test: ");  
    owp.Activate();  

    EnvDTE.Debugger debugger = (EnvDTE.Debugger)dte.Debugger;  
    owp.OutputString("\n FunctionColumnOffset: " +   
                      debugger.Breakpoints.Item(1).FunctionColumnOffset.ToString());  
    owp.OutputString("\n FunctionLineOffset: " +   
                      debugger.Breakpoints.Item(1).FunctionLineOffset.ToString());  
}  
Shared Sub FunctionColumnOffset(ByRef dte As EnvDTE.DTE)  
    MessageBox.Show("FunctionColumnOffset: " + _  
                    dte.Debugger.Breakpoints.Item(1).FunctionColumnOffset.ToString())  
    MessageBox.Show("FunctionLineOffset: " + _  
                    dte.Debugger.Breakpoints.Item(1).FunctionLineOffset.ToString())  
End Sub  

適用於