Color

InkBrush.Color propriété

Obtient ou définit la couleur du pinceau pour une ligne.

public Color Color { get; set; }

Exemples

Exemple:

[C#]
using (Presentation pres = new Presentation("pres.pptx"))
{
    IInk ink = (IInk)pres.Slides[0].Shapes[0];
    IInkTrace[] traces = ink.Traces;
    IInkBrush brush = traces[0].Brush;
    Color brushColor = brush.Color;
    brush.Color = Color.Red;
}

Voir aussi