PathSegment.IsStroked 屬性

定義

取得或設定值,這個值表示是否將片段描邊。Gets or sets a value that indicates whether the segment is stroked.

public:
 property bool IsStroked { bool get(); void set(bool value); };
public bool IsStroked { get; set; }
member this.IsStroked : bool with get, set
Public Property IsStroked As Boolean

屬性值

Boolean

如果使用 Pen 呈現片段時會將片段加上描邊則為 true,否則不會將片段描邊。true if the segment is stroked when a Pen is used to render the segment; otherwise, the segment is not stroked. 預設為 trueThe default is true.

備註

如果 PathSegment 物件將此屬性設定為 true ,則 PathFigure 當呈現時,該物件會提供給的已繪製區域 PenIf a PathSegment object has this property set to true, that object contributes to the stroked area of the PathFigure when rendered by a Pen. 如果此屬性為 true ,畫筆新增的額外區域會影響點擊測試和明確作業,以擴大 PathGeometryIf this property is true, the extra area added by a Pen affects hit testing and explicit operations to widen the PathGeometry.

當您在中切換繪製和非邊線 PathSegment 區段時 PathFigure ,會將它視為與的虛線相同 PenWhen you switch between stroked and non-stroked PathSegment sections in a PathFigure, it is considered the same as the dashes of a Pen. DashCap物件的屬性會 Pen 決定已繪製之物件的端點形狀 PathSegmentThe DashCap property of the Pen object determines the shape of the ends of stroked PathSegment objects.

相依性屬性資訊Dependency Property Information

識別碼欄位Identifier field IsStrokedProperty
中繼資料屬性設定為trueMetadata properties set to true None

適用於