Compartir a través de


Breakpoint.FunctionColumnOffset (Propiedad)

Indica el desplazamiento de columna desde el nombre de un punto de interrupción de función.

Espacio de nombres:  EnvDTE
Ensamblado:  EnvDTE (en EnvDTE.dll)

Sintaxis

'Declaración
ReadOnly Property FunctionColumnOffset As Integer
int FunctionColumnOffset { get; }
property int FunctionColumnOffset {
    int get ();
}
abstract FunctionColumnOffset : int with get
function get FunctionColumnOffset () : int

Valor de propiedad

Tipo: Int32
Un valor entero que representa el desplazamiento de columna desde el nombre de un punto de interrupción de función.

Ejemplos

En el siguiente ejemplo se muestra cómo utilizar la propiedad FunctionColumnOffset.

Para probar esta propiedad:

  1. Establezca un punto de interrupción en la aplicación de destino.

  2. Ejecute el complemento.

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

Seguridad de .NET Framework

Vea también

Referencia

Breakpoint Interfaz

EnvDTE (Espacio de nombres)