다음을 통해 공유


IAdornmentLayer 인터페이스

장식 레이어를 나타냅니다.

네임스페이스:  Microsoft.VisualStudio.Text.Editor
어셈블리:  Microsoft.VisualStudio.Text.UI.Wpf(Microsoft.VisualStudio.Text.UI.Wpf.dll)

구문

‘선언
Public Interface IAdornmentLayer
public interface IAdornmentLayer
public interface class IAdornmentLayer
type IAdornmentLayer =  interface end
public interface IAdornmentLayer

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

속성

  이름 설명
Public 속성 Elements 레이어에 있는 장식 컬렉션 및 이와 연결된 데이터를 가져옵니다.
Public 속성 IsEmpty 이 레이어가 비어 있는지 즉, 장식이 포함되어 있지 않은지 여부를 확인합니다.
Public 속성 Opacity 사용자 인터페이스에서 렌더링될 때 전체 장식 레이어에 적용되는 불투명도 비율을 가져오거나 설정합니다.
Public 속성 TextView 이 레이어가 연결된 IWpfTextView를 가져옵니다.

위쪽

메서드

  이름 설명
Public 메서드 AddAdornment(SnapshotSpan, Object, UIElement) 추가 된 UIElement 입니다 TextRelative 레이어를.
Public 메서드 AddAdornment(AdornmentPositioningBehavior, Nullable<SnapshotSpan>, Object, UIElement, AdornmentRemovedCallback) 레이어에 UIElement를 추가합니다.
Public 메서드 RemoveAdornment 특정 UIElement를 제거합니다.
Public 메서드 RemoveAdornmentsByTag 특정 태그와 연결된 UIElement 개체를 모두 제거합니다.
Public 메서드 RemoveAdornmentsByVisualSpan 지정된 표시 범위와 겹치는 표시 범위를 가진 모든 장식을 제거합니다.
Public 메서드 RemoveAllAdornments 레이어에서 UIElement 개체를 모두 제거합니다.
Public 메서드 RemoveMatchingAdornments(Predicate<IAdornmentLayerElement>) 일치 하는 모든 액세서리를 제거합니다.
Public 메서드 RemoveMatchingAdornments(SnapshotSpan, Predicate<IAdornmentLayerElement>) 일치 하는 모든 장식 시각적 범위를 제거 \입니다.

위쪽

설명

액세서리에 대 한 설명은 "장식 확장" 절을 참조 하십시오. 편집기 확장 지점 및 "장식"의 편집기에서.

참고 항목

참조

Microsoft.VisualStudio.Text.Editor 네임스페이스