Click or drag to resize
CanvasTextLayoutGetBrush Method
Gets the brush associated with a character index in the text layout.

Namespace:  Microsoft.Graphics.Canvas.Text
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public ICanvasBrush GetBrush(
	int characterIndex
)

Parameters

characterIndex
Type: SystemInt32

Return Value

Type: ICanvasBrush
Remarks

If the color was set using SetColor(Int32, Int32, Color) for this index, this method returns a CanvasSolidColorBrush with the appropriate color.

If there isn't an associated brush or color, null is returned.

See Also