Size3D Structure
.NET Framework 3.0
Data structure used to describe the size of a three-dimensional object.
Namespace: System.Windows.Media.Media3D
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace: http://schemas.microsoft.com/winfx/2006/xaml/presentation
[SerializableAttribute] [TypeConverterAttribute(typeof(Size3DConverter))] public struct Size3D : IFormattable
/** @attribute SerializableAttribute() */ /** @attribute TypeConverterAttribute(System.Windows.Media.Media3D.Size3DConverter) */ public final class Size3D extends ValueType implements IFormattable
This managed structure is not typically used in XAML.
This example shows how to determine if two Size3D structures are equal using the Size3D static Equals method.
The following code illustrates how to check Size3D structures for equality. The Size3D structures are declared and assigned values. The Equals method is then used to determine if the two structures are equal.
private bool size3DEqualityExample() { // Checks if two Size3D structures are equal using the static Equals method. // Returns a Boolean. // Declaring Size3D structure without initializing x,y,z values Size3D size1 = new Size3D(); // Delcaring Size3D structure and initializing x,y,z values Size3D size2 = new Size3D(5, 10, 15); Boolean areEqual; // Assigning values to size1 size1.X = 2; size1.Y = 4; size1.Z = 6; // checking for equality areEqual = Size3D.Equals(size1, size2); // areEqual is False return areEqual; }
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show: