Size3D Size3D Size3D Size3D Struct

Definición

Estructura de datos que describe el tamaño de un objeto tridimensional.Data structure that describes the size of a three-dimensional object.

public value class Size3D : IFormattable
[System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Size3DConverter))]
[System.Serializable]
public struct Size3D : IFormattable
type Size3D = struct
    interface IFormattable
Public Structure Size3D
Implements IFormattable
Herencia
Atributos
Implementaciones

Ejemplos

En este ejemplo se muestra cómo determinar si dos Size3D estructuras son iguales utilizando el Size3D estático Equals método.This example shows how to determine if two Size3D structures are equal using the Size3D static Equals method.

El código siguiente muestra cómo comprobar Size3D igualdad de estructuras.The following code illustrates how to check Size3D structures for equality. El Size3D estructuras se declaran y se les asignan valores.The Size3D structures are declared and assigned values. El Equals , a continuación, se usa el método para determinar si las dos estructuras son iguales.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;

}

Comentarios

Size3D y Rect3D no se utilizan normalmente en XAML, porque no hay propiedades configurables existen en el modelo de objetos 3D de WPF que usan esos tipos.Size3D and Rect3D are not typically used in XAML, because no settable properties exist in the WPF 3D object model that use those types.

Constructores

Size3D(Double, Double, Double) Size3D(Double, Double, Double) Size3D(Double, Double, Double) Size3D(Double, Double, Double)

Inicializa una nueva instancia de la estructura Size3D.Initializes a new instance of the Size3D structure.

Propiedades

Empty Empty Empty Empty

Obtiene un valor que representa un valor vacío Size3D estructura.Gets a value that represents an empty Size3D structure.

IsEmpty IsEmpty IsEmpty IsEmpty

Obtiene un valor que indica si este Size3D estructura está vacía.Gets a value that indicates whether this Size3D structure is empty.

X X X X

Obtiene o establece el X valor de este Size3D estructura.Gets or sets the X value of this Size3D structure.

Y Y Y Y

Obtiene o establece el Y valor de este Size3D estructura.Gets or sets the Y value of this Size3D structure.

Z Z Z Z

Obtiene o establece el Z valor de este Size3D estructura.Gets or sets the Z value of this Size3D structure.

Métodos

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es un Size3D estructura y de si el X, Y y Z las propiedades del elemento especificado Object son iguales a la X, Y y Zpropiedades de este Size3D estructura.Determines whether the specified object is a Size3D structure and whether the X, Y and Z properties of the specified Object are equal to the X, Y and Z properties of this Size3D structure.

Equals(Size3D) Equals(Size3D) Equals(Size3D) Equals(Size3D)

Compara dos Size3D igualdad de estructuras.Compares two Size3D structures for equality.

Equals(Size3D, Size3D) Equals(Size3D, Size3D) Equals(Size3D, Size3D) Equals(Size3D, Size3D)

Compara dos Size3D igualdad de estructuras.Compares two Size3D structures for equality. Dos Size3D estructuras son iguales si los valores de sus X, Y, y Z propiedades son las mismas.Two Size3D structures are equal if the values of their X, Y, and Z properties are the same.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Devuelve un código hash para esta estructura Size3D.Returns a hash code for this Size3D structure.

Parse(String) Parse(String) Parse(String) Parse(String)

Convierte un String representación de una estructura de tamaño tridimensional en el equivalente Size3D estructura.Converts a String representation of a three-dimensional size structure into the equivalent Size3D structure.

ToString() ToString() ToString() ToString()

Crea un String representación de este Size3D estructura.Creates a String representation of this Size3D structure.

ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider) ToString(IFormatProvider)

Crea un String representación de este Size3D estructura.Creates a String representation of this Size3D structure.

Operadores

Equality(Size3D, Size3D) Equality(Size3D, Size3D) Equality(Size3D, Size3D) Equality(Size3D, Size3D)

Compara dos Size3D igualdad de estructuras.Compares two Size3D structures for equality. Dos Size3D estructuras son iguales si los valores de sus X, Y, y Z propiedades son las mismas.Two Size3D structures are equal if the values of their X, Y, and Z properties are the same.

Explicit(Size3D to Vector3D) Explicit(Size3D to Vector3D) Explicit(Size3D to Vector3D) Explicit(Size3D to Vector3D)

Convierte esta Size3D estructurar en un Vector3D estructura.Converts this Size3D structure into a Vector3D structure.

Explicit(Size3D to Point3D) Explicit(Size3D to Point3D) Explicit(Size3D to Point3D) Explicit(Size3D to Point3D)

Convierte esta Size3D estructurar en un Point3D estructura.Converts this Size3D structure into a Point3D structure.

Inequality(Size3D, Size3D) Inequality(Size3D, Size3D) Inequality(Size3D, Size3D) Inequality(Size3D, Size3D)

Compara dos Size3D desigualdad de estructuras.Compares two Size3D structures for inequality. Dos Size3D estructuras no son iguales si los valores de sus X, Y y Z propiedades son diferentes.Two Size3D structures are not equal if the values of their X, Y and Z properties are different.

Implementaciones de interfaz explícitas

IFormattable.ToString(String, IFormatProvider) IFormattable.ToString(String, IFormatProvider) IFormattable.ToString(String, IFormatProvider) IFormattable.ToString(String, IFormatProvider)

Este miembro es compatible con la infraestructura de Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) y no está diseñado para utilizarse directamente desde el código.This member supports the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code. Para una descripción de este miembro, vea ToString(String, IFormatProvider).For a description of this member, see ToString(String, IFormatProvider).

Se aplica a