Partager via


Breakpoint.FunctionLineOffset, propriété

Indique l'offset de ligne à partir du nom d'un point d'arrêt sur fonction.

Espace de noms :  EnvDTE
Assembly :  EnvDTE (dans EnvDTE.dll)

Syntaxe

'Déclaration
ReadOnly Property FunctionLineOffset As Integer
    Get
int FunctionLineOffset { get; }
property int FunctionLineOffset {
    int get ();
}
abstract FunctionLineOffset : int
function get FunctionLineOffset () : int

Valeur de propriété

Type : System.Int32
Valeur entière représentant l'offset de ligne à partir du nom d'un point d'arrêt sur fonction.

Notes

Selon le moteur, cela peut ne pas fonctionner correctement dans le langage d'origine.

Exemples

L'exemple suivant montre comment utiliser la propriété FunctionLineOffset.

Pour tester cette propriété :

  1. Définissez un point d'arrêt dans l'application cible.

  2. Exécutez le complément.

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

    // 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 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

Sécurité .NET Framework

Voir aussi

Référence

Breakpoint Interface

EnvDTE, espace de noms