shape.Fill = ShapeFill.FromColor(System.Windows.Media.Colors.SteelBlue)
shape.Outline = ShapeOutline.FromColor(System.Windows.Media.Colors.RoyalBlue)
shape.Text = New Infragistics.Documents.Excel.FormattedText("Inside text of a shape")
This topic shows you how to use the WorksheetShape properties to change the shape’s look and feel.
You need to first read the following topics:
The table below lists the configurable behaviors of the control.
The table below maps the desired behaviors to property settings. The properties are accessed through WorksheetShape and WorksheetShapeWithText classes.
The code below demonstrates how to change the fill, outline and/or text of a previously initialized shape.
In Visual Basic:
shape.Fill = ShapeFill.FromColor(System.Windows.Media.Colors.SteelBlue)
shape.Outline = ShapeOutline.FromColor(System.Windows.Media.Colors.RoyalBlue)
shape.Text = New Infragistics.Documents.Excel.FormattedText("Inside text of a shape")
In C#:
shape.Fill = ShapeFill.FromColor(System.Windows.Media.Colors.SteelBlue);
shape.Outline = ShapeOutline.FromColor(System.Windows.Media.Colors.RoyalBlue);
shape.Text = new Infragistics.Documents.Excel.FormattedText("Inside text of a shape");
Following are some other topics you may find useful.