Condividi tramite


Proprietà Breakpoint2.FunctionColumnOffset

Ottiene l'offset della colonna dal nome di un punto di interruzione di una funzione.

Spazio dei nomi:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

Sintassi

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

Valore proprietà

Tipo: System.Int32
Intero contenente l'offset della colonna dal nome di un punto di interruzione di una funzione.

Implementa

Breakpoint.FunctionColumnOffset

Note

Per ulteriori informazioni, vedere la finestra di dialogo File, Nuovo punto di interruzione.

Esempi

Nell'esempio riportato di seguito viene illustrato come utilizzare la proprietà FunctionColumnOffset.

Per verificare la proprietà:

  1. Impostare un punto di interruzione nell'applicazione di destinazione.

  2. Eseguire il componente aggiuntivo.

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

Sicurezza di .NET Framework

Vedere anche

Riferimenti

Breakpoint2 Interfaccia

Overload FunctionColumnOffset

Spazio dei nomi EnvDTE80

Altre risorse

Procedura: compilare ed eseguire gli esempi di codice del modello a oggetti di automazione