Rect3D 結構
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示 3-D 矩形:例如,立方體。
public value class Rect3D : IFormattable
[System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Rect3DConverter))]
[System.Serializable]
public struct Rect3D : IFormattable
[System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Rect3DConverter))]
public struct Rect3D : IFormattable
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Rect3DConverter))>]
[<System.Serializable>]
type Rect3D = struct
interface IFormattable
[<System.ComponentModel.TypeConverter(typeof(System.Windows.Media.Media3D.Rect3DConverter))>]
type Rect3D = struct
interface IFormattable
Public Structure Rect3D
Implements IFormattable
- 繼承
- 屬性
- 實作
備註
Rect3D 定義為位置 (Point3D) 和大小結構 (Size3D) 。 因為為 X 大小指定的 、 Y 和 Z 值是大小大小,而不是座標,所以除了空矩形的情況之外,它們不能是負數。 空白矩形是由 指定 Empty ,其具有 X -Infinity 的 、 Y 和 Z 值。
這個 結構通常用來表示 或 Model3D 的 MeshGeometry3D 界限。
Size3D 和 Rect3D 通常不會用於 XAML,因為 WPF 3D 物件模型中沒有使用這些類型的可設定屬性。
建構函式
| Rect3D(Double, Double, Double, Double, Double, Double) |
初始化 Rect3D 結構的新執行個體。 |
| Rect3D(Point3D, Size3D) |
初始化 Rect3D 結構的新執行個體。 |
屬性
| Empty |
取得空的 Rect3D。 |
| IsEmpty | |
| Location | |
| Size |
取得或設定 Rect3D 的區域。 |
| SizeX |
取得或設定 Rect3D 在 X 維度的大小。 |
| SizeY |
取得或設定 Rect3D 在 Y 維度的大小。 |
| SizeZ |
取得或設定 Rect3D 在 Z 維度的大小。 |
| X |
取得或設定 Rect3D 的 X 座標值。 |
| Y |
取得或設定 Rect3D 的 Y 座標值。 |
| Z |
取得或設定 Rect3D 的 Z 座標值。 |
方法
| Contains(Double, Double, Double) | |
| Contains(Point3D) | |
| Contains(Rect3D) | |
| Equals(Object) |
比較兩個 Rect3D 執行個體是否相等。 |
| Equals(Rect3D) |
比較兩個 Rect3D 執行個體是否相等。 |
| Equals(Rect3D, Rect3D) |
比較兩個 Rect3D 執行個體是否相等。 |
| GetHashCode() |
傳回 Rect3D 的雜湊程式碼。 |
| Intersect(Rect3D) | |
| Intersect(Rect3D, Rect3D) |
傳回指定之 Rect3D 值的交集。 |
| IntersectsWith(Rect3D) | |
| Offset(Double, Double, Double) |
取得或設定位移值,其中會解譯 Rect3D 的位置。 |
| Offset(Rect3D, Double, Double, Double) |
取得或設定位移值,其中會解譯 Rect3D 的位置。 |
| Offset(Rect3D, Vector3D) |
取得或設定位移值,其中會解譯 Rect3D 的位置。 |
| Offset(Vector3D) | |
| Parse(String) | |
| ToString() |
建立 Rect3D 的字串表示。 |
| ToString(IFormatProvider) |
建立 Rect3D 的字串表示。 |
| Union(Point3D) | |
| Union(Rect3D) | |
| Union(Rect3D, Point3D) | |
| Union(Rect3D, Rect3D) |
運算子
| Equality(Rect3D, Rect3D) |
比較兩個 Rect3D 執行個體是否完全相等。 |
| Inequality(Rect3D, Rect3D) |
比較兩個 Rect3D 執行個體是否完全不相等。 |
明確介面實作
| IFormattable.ToString(String, IFormatProvider) |
此成員支援Windows Presentation Foundation (WPF) 基礎結構,而且不適合直接從您的程式碼使用。 如需這個成員的說明,請參閱 ToString(String, IFormatProvider)。 |