Sdílet prostřednictvím


Breakpoint.FunctionColumnOffset – vlastnost

Určuje posun od názvu funkce breakpoint sloupce.

Obor názvů:  EnvDTE
Sestavení:  EnvDTE (v EnvDTE.dll)

Syntaxe

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

Hodnota vlastnosti

Typ: System.Int32
Celočíselná hodnota představující sloupec posun od názvu funkce zarážky.

Příklady

Následující příklad demonstruje použití FunctionColumnOffset vlastnost.

Tato vlastnost testování:

  1. Nastavte zarážky v cílové aplikaci.

  2. Spusťte doplněk.

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();

    // dte is a reference to the DTE object passed to you by the
    // OnConnection method that you implement when you create an add-in.
    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

Zabezpečení rozhraní .NET Framework

Viz také

Odkaz

Breakpoint Rozhraní

EnvDTE – obor názvů