Rect3D 結構
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
表示立體矩形:例如 Cube。
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)。 由於大小、 XY、 以及Z指定大小的值是大小而非座標,除非是空矩形,否則它們不能為負值。 一個空矩形由 表示Empty,其 、 XY,且Z值為 -無限大。
此結構通常用來表示 或 MeshGeometry3DModel3D的界限。
Size3D 且 Rect3D 通常不在 XAML 中使用,因為 WPF 3D 物件模型中不存在使用這些類型的可設定屬性。
建構函式
| 名稱 | Description |
|---|---|
| Rect3D(Double, Double, Double, Double, Double, Double) |
初始化結構的新實例 Rect3D 。 |
| Rect3D(Point3D, Size3D) |
初始化結構的新實例 Rect3D 。 |
屬性
| 名稱 | Description |
|---|---|
| Empty |
得到一個空的 Rect3D。 |
| IsEmpty | |
| Location | |
| Size |
取得或設定 的 Rect3D面積。 |
| SizeX |
取得或設定 在 Rect3D X 維度中的大小。 |
| SizeY |
取得或設定 在 Rect3D Y 維度中的大小。 |
| SizeZ |
取得或設定 Rect3D 在 Z 維度的大小。 |
| X |
取得或設定 X 座標 Rect3D的值。 |
| Y |
取得或設定 Y 座標 Rect3D的值。 |
| Z |
取得或設定 的 Z 座標 Rect3D值。 |
方法
| 名稱 | Description |
|---|---|
| Contains(Double, Double, Double) | |
| Contains(Point3D) | |
| Contains(Rect3D) | |
| Equals(Object) |
比較兩個 Rect3D 實例以表示相等。 |
| Equals(Rect3D, Rect3D) |
比較兩個 Rect3D 實例以表示相等。 |
| Equals(Rect3D) |
比較兩個 Rect3D 實例以表示相等。 |
| GetHashCode() |
回傳 的雜湊碼。Rect3D |
| Intersect(Rect3D, Rect3D) |
回傳指定 Rect3D 值的交集。 |
| Intersect(Rect3D) | |
| IntersectsWith(Rect3D) | |
| Offset(Double, Double, Double) |
取得或設定一個偏移值,藉此平移 a Rect3D 的位置。 |
| Offset(Rect3D, Double, Double, Double) |
取得或設定一個偏移值,藉此平移 a Rect3D 的位置。 |
| Offset(Rect3D, Vector3D) |
取得或設定一個偏移值,藉此平移 a Rect3D 的位置。 |
| Offset(Vector3D) | |
| Parse(String) | |
| ToString() |
建立 Rect3D 的字串表示。 |
| ToString(IFormatProvider) |
建立一個字串表示。Rect3D |
| Union(Point3D) | |
| Union(Rect3D, Point3D) | |
| Union(Rect3D, Rect3D) | |
| Union(Rect3D) |
運算子
| 名稱 | Description |
|---|---|
| Equality(Rect3D, Rect3D) |
比較兩個 Rect3D 實例以求完全相同的結果。 |
| Inequality(Rect3D, Rect3D) |
比較兩個 Rect3D 精確不等式的實例。 |
明確介面實作
| 名稱 | Description |
|---|---|
| IFormattable.ToString(String, IFormatProvider) |
此成員支援 Windows Presentation Foundation(WPF)基礎架構,並非直接從您的程式碼中使用。 關於此成員的描述,請參見 ToString(String, IFormatProvider)。 |