Share via


Breakpoint.FunctionColumnOffset 속성

함수 중단점 이름의 열 오프셋을 나타냅니다.

네임스페이스:  EnvDTE
어셈블리:  EnvDTE(EnvDTE.dll)

구문

‘선언
ReadOnly Property FunctionColumnOffset As Integer
int FunctionColumnOffset { get; }
property int FunctionColumnOffset {
    int get ();
}
abstract FunctionColumnOffset : int with get
function get FunctionColumnOffset () : int

속성 값

형식: Int32
함수 중단점 이름의 열 오프셋을 나타내는 정수 값입니다.

예제

다음 예제에서는 FunctionColumnOffset 속성을 사용하는 방법을 보여 줍니다.

이 속성을 테스트하려면

  1. 대상 응용 프로그램에 중단점을 설정합니다.

  2. 추가 기능을 실행합니다.

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

.NET Framework 보안

참고 항목

참조

Breakpoint 인터페이스

EnvDTE 네임스페이스