CustomLineCap.WidthScale 屬性

定義

取得或設定縮放與 CustomLineCap 物件寬度相關的這個 Pen 類別物件的數量。

public:
 property float WidthScale { float get(); void set(float value); };
public float WidthScale { get; set; }
member this.WidthScale : single with get, set
Public Property WidthScale As Single

屬性值

要縮放端點的數量。

備註

這個屬性會指定要乘以自定義上限大小的畫筆寬度倍數。 例如,如果此屬性等於1,則自定義上限寬度為10、自定義上限高度為5,而線條的畫筆寬度為3,則上限會繪製30單位寬且高15單位。 將此屬性設定為 3 會使上限繪製 90 個單位寬,而高 45 個單位。

適用於