LinkDecorator.DoPaintShape 方法
繪製在 LinkShape LinkDecorator 根據會給予的界限。將預設的描繪程式碼會取得裝飾的路徑和繪製填滿它根據 LinkDecorator 的 PenId 和 BrushId。
命名空間: Microsoft.VisualStudio.Modeling.Diagrams
組件: Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)
語法
'宣告
Public Overridable Sub DoPaintShape ( _
bounds As RectangleD, _
shape As IGeometryHost, _
e As DiagramPaintEventArgs _
)
public virtual void DoPaintShape(
RectangleD bounds,
IGeometryHost shape,
DiagramPaintEventArgs e
)
參數
- bounds
型別:Microsoft.VisualStudio.Modeling.Diagrams.RectangleD
要在其中繪製裝飾的矩形。
- shape
型別:Microsoft.VisualStudio.Modeling.Diagrams.IGeometryHost
這個裝飾與其相關聯的 LinkShape。
- e
型別:Microsoft.VisualStudio.Modeling.Diagrams.DiagramPaintEventArgs
DiagramPaintEventArgs 用得到他的繪圖的圖形物件。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。