다음을 통해 공유


Breakpoint2.FileColumn Property

Definition

Gets the character location within a line in a file where the breakpoint is set.

public:
 property int FileColumn { int get(); };
public:
 property int FileColumn { int get(); };
[System.Runtime.InteropServices.DispId(107)]
public int FileColumn { [System.Runtime.InteropServices.DispId(107)] get; }
[<System.Runtime.InteropServices.DispId(107)>]
[<get: System.Runtime.InteropServices.DispId(107)>]
member this.FileColumn : int
Public ReadOnly Property FileColumn As Integer

Property Value

An integer containing the character location.

Implements

Attributes

Examples

The following example demonstrates how to use the FileColumn property.

public static void FileColumn(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("FileColumn property: ");  
    owp.Activate();  

    EnvDTE80.Debugger2 debugger = (EnvDTE80.Debugger2)dte.Debugger;  
    owp.OutputString("Breakpoint in the file " + debugger.Breakpoints.Item(1).File);  
    owp.OutputString(" on line " +  
                     debugger.Breakpoints.Item(1).FileLine.ToString() + " column ");  
    owp.OutputString(debugger.Breakpoints.Item(1).FileColumn.ToString() + " is ");  
    owp.OutputString(debugger.Breakpoints.Item(1).Enabled ? "enabled." : "disabled.");  
    owp.OutputString("\nThis breakpoint is in the function: " +  
                     debugger.Breakpoints.Item(1).FunctionName);  
}  

Remarks

Gets the character location (the column) within a line in a file where the breakpoint is set. This value is specified in the Character box of the File, New Breakpoint dialog box.

Applies to