Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Shape.Stroke Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets or sets the Brush that specifies how the Shape outline is painted.

public:
 property Brush ^ Stroke { Brush ^ get(); void set(Brush ^ value); };
Brush Stroke();

void Stroke(Brush value);
public Brush Stroke { get; set; }
var brush = shape.stroke;
shape.stroke = brush;
Public Property Stroke As Brush
<shape Stroke="{StaticResource resourceName}"/>
- or -
<shape Stroke="colorString"/>
- or -
<shape>
 <shape.Stroke>singleBrush</shape.Stroke>
</shape>

Property Value

A Brush that specifies how the Shape outline is painted. The default is null.

Applies to

See also


Feedback

Was this page helpful?