GeometrySource Generic Class
提供幾何圖形來源的基底類別。根據輸入參數和版面配置邊界產生和快取幾何圖形。
命名空間: Microsoft.Expression.Media
組件: Microsoft.Expression.Drawing (在 microsoft.expression.drawing.dll 中)
語法
'宣告
Public MustInherit Class GeometrySource(Of TParameters As IGeometrySourceParameters)
Implements IGeometrySource
'用途
Dim instance As GeometrySource(Of TParameters)
public abstract class GeometrySource<TParameters> : IGeometrySource where TParameters : IGeometrySourceParameters
generic<typename TParameters> where TParameters : IGeometrySourceParameters
public ref class GeometrySource abstract : IGeometrySource
備註
典型的實作會擴充 UpdateCachedGeometry() 以更新 this.cachedGeometry。此基底類別便會接著處理和版面配置邊界相對的失效、幾何效果之管線及快取。實作應盡可能嘗試重複使用已快取的幾何圖形,以避免在呈現執行緒中重新建構。實作可擴充 ComputeLogicalBounds 以利用不同的方式處理 Stretch。
繼承階層
System.Object
Microsoft.Expression.Media.GeometrySource
執行緒安全性
此型別的所有公用靜態 (Visual Basic 中為 Shared ) 成員均為安全執行緒。任何例項成員則不保證為安全執行緒。