<< Click to Display Table of Contents >> NShape User Tasks
|
This section describes, how the user can modify a shape's color in the NShape Designer or similar user interfaces. There are multiple ways to do that depending on the range of objects intended to change:
a) | Setting the shape's style directly in the user interface: Modifies only the shape itself and detaches the style from its template's style. |
b) | Setting the shape's style via the template editor: This way you can change all shapes created from a template. |
c) | Modifying the shape's style in the design editor: When modifying a style, all occurrences of this style will be influenced. |
Here is a summary of what you can change and where to find the property.
The first column contains the visual appearance to change.
The second column specifies the name of the shape's property or method containing the style responsible for the visual appearance.
The third column specifies the property of the style affecting the visual appearance.
Visual Appearance |
Template / Shape Property |
Style Property |
Line/Outline thickness |
Shape.LineStyle |
ILineStyle.LineWidth |
Line/Outline color |
Shape.LineStyle |
ILienStyle.ColorStyle |
Line/Outline dashing |
Shape.LineStyle |
ILineStyle.DashType |
Line/Outline corners |
Shape.LineStyle |
ILineStyle.LineJoin |
Line end cap shape |
PolyLine.StartCapStyle |
ICapStyle.CapShape |
Line end cap size |
PolyLine.StartCapStyle |
ICapStyle.CapSize |
Line end cap color |
PolyLine.StartCapStyle |
ICapStyle.ColorStyle |
Color gradient |
IPlanarShape.FillStyle |
IFillStyle.FillMode |
Color gradient's color |
IPlanarShape.FillStyle |
IFillStyle.BaseColorStyle |
Solid color |
IPlanarShape.FillStyle |
IFillStyle.FillMode |
Solid color's color |
IPlanarShape.FillStyle |
IFillStyle.BaseColorStyle |
Pattern |
IPlanarShape.FillStyle |
IFillStyle.FillMode |
Pattern color |
IPlanarShape.FillStyle |
IFillStyle.BaseColorStyle |
Image |
IPlanarShape.FillStyle |
IFillStyle.FillMode |
Image layout |
IPlanarShape.FillStyle |
IFillStyle.ImageLayout |
Transparency |
IPlanarShape.FillStyle |
IColorStyle.Transparency |
Text font |
CaptionedShapeBase.CharacterStyle |
ICharacterStyle.FontName |
Text style |
CaptionedShapeBase.CharacterStyle |
ICharacterStyle.Style |
Text font size |
CaptionedShapeBase.CharacterStyle |
ICharacterStyle.Size |
Text color |
CaptionedShapeBase.CharacterStyle |
ICharacterStyle.ColorStyle |
Text alignment |
CaptionedShapeBase.ParagraphStyle |
IParagraphStyle.Alignment |
Text line break (word warp) |
CaptionedShapeBase.ParagraphStyle |
IParagraphStyle.WordWrap |
Text trimming |
CaptionedShapeBase.ParagraphStyle |
IParagraphStyle.Trimming |
Text margin |
CaptionedShapeBase.ParagraphStyle |
IParagraphStyle.Margin |