XamlDirect.CreateInstance(XamlTypeIndex) 메서드

정의

XamlTypeIndex 매개 변수에 지정된 형식의 IXamlDirectObject instance 만듭니다.

public:
 virtual IXamlDirectObject ^ CreateInstance(XamlTypeIndex typeIndex) = CreateInstance;
IXamlDirectObject CreateInstance(XamlTypeIndex const& typeIndex);
public IXamlDirectObject CreateInstance(XamlTypeIndex typeIndex);
function createInstance(typeIndex)
Public Function CreateInstance (typeIndex As XamlTypeIndex) As IXamlDirectObject

매개 변수

typeIndex
XamlTypeIndex

XamlTypeIndex 열거형에 나열된 지원되는 형식 집합에서 특정 XAML 형식을 참조합니다.

반환

IXamlDirectObject instance 반환합니다.

예제

다음 예제에서는 Border 요소에 대한 IXamlDirectObject instance 만드는 방법을 보여줍니다.

XamlDirect xd = XamlDirect.GetDefault();
IXamlDirectObject border = xd.CreateInstance(XamlTypeIndex.Border);
XamlDirect^ xd = XamlDirect::GetDefault();
IXamlDirectObject^ border = xd->CreateInstance(XamlTypeIndex::Border);

적용 대상

추가 정보