共用方式為


DirectionalLight.Direction 屬性

定義

表示向量,燈光的效果將沿著這個向量投射在 3D 場景中的模型上。

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

屬性值

Vector3D

燈光投射時所遵循的 Vector3D 方向,這個向量的大小不能是零。 預設值 為 (0,0,-1)

備註

相依性屬性資訊

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

適用於