다음을 통해 공유


VirtualPoint 인터페이스

텍스트 문서의 오른쪽 여백(양방향 Windows에서는 왼쪽 여백)을 넘어 텍스트를 조작할 수 있도록 합니다.

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

구문

‘선언
<GuidAttribute("42320454-626C-4DD0-9ECB-357C4F1966D8")> _
Public Interface VirtualPoint _
    Inherits TextPoint
[GuidAttribute("42320454-626C-4DD0-9ECB-357C4F1966D8")]
public interface VirtualPoint : TextPoint
[GuidAttribute(L"42320454-626C-4DD0-9ECB-357C4F1966D8")]
public interface class VirtualPoint : TextPoint
[<GuidAttribute("42320454-626C-4DD0-9ECB-357C4F1966D8")>]
type VirtualPoint =  
    interface
        interface TextPoint
    end
public interface VirtualPoint extends TextPoint

VirtualPoint 형식에서는 다음과 같은 멤버를 노출합니다.

속성

  이름 설명
Public 속성 AbsoluteCharOffset 문서의 처음부터 TextPoint 개체까지의 문자 오프셋(1부터 시작)을 가져옵니다. (TextPoint에서 상속됨)
Public 속성 AbsoluteCharOffset 문서의 처음부터 개체까지의 문자 오프셋(1부터 시작)을 가져옵니다.
Public 속성 AtEndOfDocument 개체가 문서의 끝에 있는지 여부를 가져옵니다. (TextPoint에서 상속됨)
Public 속성 AtEndOfDocument 개체가 문서의 끝에 있으면 true를 반환합니다.
Public 속성 AtEndOfLine 개체가 줄의 끝에 있는지 여부를 가져옵니다. (TextPoint에서 상속됨)
Public 속성 AtEndOfLine 개체가 줄의 끝에 있으면 true를 반환합니다.
Public 속성 AtStartOfDocument 개체가 문서의 처음에 있는지 여부를 가져옵니다. (TextPoint에서 상속됨)
Public 속성 AtStartOfDocument 개체가 문서의 맨 앞에 있으면 true를 반환합니다.
Public 속성 AtStartOfLine 개체가 줄의 처음에 있는지 여부를 가져옵니다. (TextPoint에서 상속됨)
Public 속성 AtStartOfLine 개체가 줄의 맨 앞에 있으면 true를 반환합니다.
Public 속성 CodeElement[vsCMElement] TextPoint 위치에 있는 코드 요소를 반환합니다. (TextPoint에서 상속됨)
Public 속성 CodeElement[vsCMElement] VirtualPoint 위치에 있는 코드 요소를 반환합니다.
Public 속성 DisplayColumn TextPoint 개체를 포함하는 현재 표시된 열의 번호를 가져옵니다. (TextPoint에서 상속됨)
Public 속성 DisplayColumn 개체를 포함하는 현재 표시된 열의 번호를 가져옵니다.
Public 속성 DTE 최상위 확장성 개체를 가져옵니다. (TextPoint에서 상속됨)
Public 속성 DTE 최상위 확장성 개체를 가져옵니다.
Public 속성 Line 개체의 줄 번호를 가져옵니다. (TextPoint에서 상속됨)
Public 속성 Line 개체의 줄 번호를 가져옵니다.
Public 속성 LineCharOffset 개체의 문자 오프셋을 가져옵니다. (TextPoint에서 상속됨)
Public 속성 LineCharOffset 개체의 문자 오프셋을 가져옵니다.
Public 속성 LineLength 개체를 포함하는 줄에서 줄 바꿈 문자를 제외한 문자 수를 가져옵니다. (TextPoint에서 상속됨)
Public 속성 LineLength 개체를 포함하는 줄에서 줄 바꿈 문자를 제외한 문자 수를 가져옵니다.
Public 속성 Parent TextPoint 개체의 바로 위 부모 개체를 가져옵니다. (TextPoint에서 상속됨)
Public 속성 Parent VirtualPoint 개체의 바로 위 부모 개체를 가져옵니다.
Public 속성 VirtualCharOffset 가상 공간에 있는 가상 지점의 열 인덱스를 가져옵니다.
Public 속성 VirtualDisplayColumn 현재 위치의 표시 열을 가져옵니다.

위쪽

메서드

  이름 설명
Public 메서드 CreateEditPoint() 호출하는 개체의 위치에서 EditPoint 개체를 만들고 반환합니다. (TextPoint에서 상속됨)
Public 메서드 CreateEditPoint() 호출하는 개체의 위치에서 EditPoint 개체를 만들어 반환합니다.
Public 메서드 EqualTo(TextPoint) 지정된 지점 개체의 AbsoluteCharOffset 속성 값이 호출하는 TextPoint 개체의 속성 값과 같은지 여부를 반환합니다. (TextPoint에서 상속됨)
Public 메서드 EqualTo(TextPoint) 지정된 TextPoint 개체의 AbsoluteCharOffset 속성 값이 호출하는 VirtualPoint 개체의 속성 값과 같은지 여부를 반환합니다.
Public 메서드 GreaterThan(TextPoint) 호출하는 개체의 AbsoluteCharOffset 속성 값이 지정된 지점 개체의 속성 값보다 큰지 여부를 나타냅니다. (TextPoint에서 상속됨)
Public 메서드 GreaterThan(TextPoint) 호출하는 개체의 AbsoluteCharOffset 속성 값이 지정된 지점 개체의 속성 값보다 큰지 여부를 반환합니다.
Public 메서드 LessThan(TextPoint) 호출된 개체의 AbsoluteCharOffset 속성 값이 지정된 개체의 속성 값보다 작은지 여부를 나타냅니다. (TextPoint에서 상속됨)
Public 메서드 LessThan(TextPoint) 호출된 개체의 AbsoluteCharOffset 속성 값이 지정된 개체의 속성 값보다 작은지 여부를 반환합니다.
Public 메서드 TryToShow(vsPaneShowHow, Object) 텍스트 지점의 위치를 표시하려고 합니다. (TextPoint에서 상속됨)
Public 메서드 TryToShow(vsPaneShowHow, Object) 텍스트 지점의 위치를 표시하려고 합니다.

위쪽

설명

VirtualPoint 개체는 문서에서 가상 공간을 쿼리할 수 있다는 점을 제외하면 TextPoint 개체와 비슷합니다. VirtualPoint 개체는 TextSelection.StartPoint 및 TextSelection.EndPoint에서 반환됩니다.

가상 공간은 기존 텍스트 줄의 오른쪽에 있는 빈 공간이며 이 영역에 가상 지점이 있습니다.

예제

Sub VirtualPointExample()
   ' Before running this example, open a text document.
   Dim objSel As TextSelection = DTE.ActiveDocument.Selection
   Dim objActive As VirtualPoint = objSel.ActivePoint
   ' Collapse the selection to the beginning of the line.
   objSel.StartOfLine()
   ' objActive is "live", tied to the position of the actual selection, 
   ' so it will reflect the new position.
   Dim iCol As Long = objActive.DisplayColumn
   ' Move the selection to the end of the line.
   objSel.EndOfLine()

   MsgBox("The length of the insertion point line is " & (objActive.DisplayColumn - iCol) & " display characters.")
   MsgBox("VirtualCharOffset value: " & objActive.VirtualCharOffset & vbCr & "VirtualDisplayColumn value: " & objActive.VirtualDisplayColumn)
End Sub

참고 항목

참조

EnvDTE 네임스페이스