Size3D.Explicit 연산자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
Explicit(Size3D to Vector3D) | |
Explicit(Size3D to Point3D) |
Explicit(Size3D to Vector3D)
public:
static explicit operator System::Windows::Media::Media3D::Vector3D(System::Windows::Media::Media3D::Size3D size);
public static explicit operator System.Windows.Media.Media3D.Vector3D (System.Windows.Media.Media3D.Size3D size);
static member op_Explicit : System.Windows.Media.Media3D.Size3D -> System.Windows.Media.Media3D.Vector3D
Public Shared Narrowing Operator CType (size As Size3D) As Vector3D
매개 변수
- size
- Size3D
변환할 크기입니다.
반환
size
의 변환 결과입니다.
예제
다음 예제에서는 구조체를 구조체로 명시적으로 변환하는 Size3D Vector3D 방법을 보여줍니다.
// Explicitly converts a Size3D structure into a Vector3D structure
// Returns a Vector3D.
Size3D size1 = new Size3D(2, 4, 6);
Vector3D vector1 = new Vector3D();
vector1 = (Vector3D)size1;
// vector1 is equal to (2, 4, 6)
// Displaying Results
syntaxString = "vector1 = (Vector3D)size1;";
resultType = "Vector3D";
operationString = "Expliciting casting a Size3D into a Vector3D";
ShowResults(vector1.ToString(), syntaxString, resultType, operationString);
' Explicitly converts a Size3D structure into a Vector3D structure
' Returns a Vector3D.
Dim size1 As New Size3D(2, 4, 6)
Dim vector1 As New Vector3D()
vector1 = CType(size1, Vector3D)
' vector1 is equal to (2, 4, 6)
' Displaying Results
syntaxString = "vector1 = (Vector3D)size1"
resultType = "Vector3D"
operationString = "Expliciting casting a Size3D into a Vector3D"
ShowResults(vector1.ToString(), syntaxString, resultType, operationString)
적용 대상
Explicit(Size3D to Point3D)
public:
static explicit operator System::Windows::Media::Media3D::Point3D(System::Windows::Media::Media3D::Size3D size);
public static explicit operator System.Windows.Media.Media3D.Point3D (System.Windows.Media.Media3D.Size3D size);
static member op_Explicit : System.Windows.Media.Media3D.Size3D -> System.Windows.Media.Media3D.Point3D
Public Shared Narrowing Operator CType (size As Size3D) As Point3D
매개 변수
- size
- Size3D
변환할 크기입니다.
반환
size
의 변환 결과입니다.
예제
다음 예제에서는 구조체를 구조체로 명시적으로 변환하는 Size3D Point3D 방법을 보여줍니다.
// Explicitly converts a Size3D structure into a Point3D structure
// Returns a Vector3D.
Size3D size1 = new Size3D(2, 4, 6);
Point3D point1 = new Point3D();
point1 = (Point3D)size1;
// point1 is equal to (2, 4, 6)
// Displaying Results
syntaxString = "point1 = (Point3D)size1;";
resultType = "Point3D";
operationString = "Expliciting casting a Size3D into a Point3D";
ShowResults(point1.ToString(), syntaxString, resultType, operationString);
' Explicitly converts a Size3D structure into a Point3D structure
' Returns a Vector3D.
Dim size1 As New Size3D(2, 4, 6)
Dim point1 As New Point3D()
point1 = CType(size1, Point3D)
' point1 is equal to (2, 4, 6)
' Displaying Results
syntaxString = "point1 = (Point3D)size1"
resultType = "Point3D"
operationString = "Expliciting casting a Size3D into a Point3D"
ShowResults(point1.ToString(), syntaxString, resultType, operationString)