ProjectionCamera.Position 屬性

定義

取得或設定相機在全局空間中的位置。

public:
 property System::Windows::Media::Media3D::Point3D Position { System::Windows::Media::Media3D::Point3D get(); void set(System::Windows::Media::Media3D::Point3D value); };
public System.Windows.Media.Media3D.Point3D Position { get; set; }
member this.Position : System.Windows.Media.Media3D.Point3D with get, set
Public Property Position As Point3D

屬性值

指定相機位置的 Point3D

範例

<Viewport3D.Camera>
  <PerspectiveCamera FarPlaneDistance="20" LookDirection="5,-2,-3" UpDirection="0,1,0" NearPlaneDistance="0" Position="-5,2,3" FieldOfView="45" />
</Viewport3D.Camera>

備註

請注意,這個屬性會傳回相機的位置,而不是 LookDirection 相機投影置中所在的 。

相依性屬性資訊

識別碼欄位 PositionProperty
設定為 的中繼資料屬性 true

適用於