Partager via


Breakpoint2.FunctionColumnOffset, propriété

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

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

Syntaxe

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

Valeur de propriété

Type : Int32
Entier qui contient l'offset de colonne à partir du nom d'un point d'arrêt sur fonction.

Notes

Consultez la boîte de dialogue Fichier, Nouveau point d'arrêt pour plus d'informations.

Exemples

L'exemple suivant illustre l'utilisation de la propriété FunctionColumnOffset.

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

Sécurité .NET Framework

Voir aussi

Référence

Breakpoint2 Interface

EnvDTE80, espace de noms

Autres ressources

Comment : compiler et exécuter les exemples de code du modèle objet Automation