Breakpoint2.FunctionLineOffset Property
Gets the line offset from the name of a function breakpoint.
Namespace: EnvDTE80
Assembly: EnvDTE80 (in EnvDTE80.dll)
Syntax
'Declaration
ReadOnly Property FunctionLineOffset As Integer
int FunctionLineOffset { get; }
property int FunctionLineOffset {
int get ();
}
abstract FunctionLineOffset : int with get
function get FunctionLineOffset () : int
Property Value
Type: System.Int32
An integer containing the line offset from the name of a function breakpoint.
Remarks
See File, New Breakpoint dialog box for more information.
Examples
The following example demonstrates how to use the FunctionLineOffset property.
To test this property:
Set a breakpoint in the target application.
Run the add-in.
public static void FunctionLineOffset (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("FunctionLineOffset 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 Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Other Resources
How to: Compile and Run the Automation Object Model Code Examples