DesignerView.FromContext 메서드

지정된 컨텍스트에 저장된 디자이너 뷰를 반환합니다.

네임스페이스:  Microsoft.Windows.Design.Interaction
어셈블리:  Microsoft.Windows.Design.Interaction(Microsoft.Windows.Design.Interaction.dll)

구문

‘선언
Public Shared Function FromContext ( _
    context As EditingContext _
) As DesignerView
public static DesignerView FromContext(
    EditingContext context
)
public:
static DesignerView^ FromContext(
    EditingContext^ context
)
static member FromContext : 
        context:EditingContext -> DesignerView 
public static function FromContext(
    context : EditingContext
) : DesignerView

매개 변수

반환 값

형식: Microsoft.Windows.Design.Interaction.DesignerView
context에 저장된 DesignerView이거나, 뷰가 없으면 nullNull 참조(Visual Basic의 경우 Nothing)입니다.

예외

예외 상황
ArgumentNullException

context는 nullNull 참조(Visual Basic의 경우 Nothing)입니다.

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

DesignerView 클래스

Microsoft.Windows.Design.Interaction 네임스페이스

AdornerPanel

기타 리소스

연습: 디자인 타임 표시기 만들기

표시기 아키텍처