次の方法で共有


Breakpoint.FunctionLineOffset Property

Definition

Indicates the line offset from the name of a function breakpoint.

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

Property Value

An integer value representing the line offset from the name of a function breakpoint.

Attributes

Examples

The following example demonstrates how to use the FunctionLineOffset property.

public static void FunctionLineOffset(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("FunctionLineOffset 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 FunctionLineOffset(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  

Remarks

Depending on engine, this may not function properly in native language.

Applies to