NShape User Tasks
Changing the Shape Appearance Manually

<< Click to Display Table of Contents >>

Navigation:  User Tasks >

NShape User Tasks
Changing the Shape Appearance Manually

Previous pageReturn to chapter overviewNext page

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
IColorStyle.Color

Line/Outline dashing

Shape.LineStyle

ILineStyle.DashType

Line/Outline corners

Shape.LineStyle

ILineStyle.LineJoin
ILineStyle.DashCap

Line end cap shape

PolyLine.StartCapStyle
PolyLine.EndCapStyle
CircularArc.StartCapStyle
CircularArc.EndCapStyle

ICapStyle.CapShape

Line end cap size

PolyLine.StartCapStyle
PolyLine.EndCapStyle
CircularArc.StartCapStyle
CircularArc.EndCapStyle

ICapStyle.CapSize

Line end cap color

PolyLine.StartCapStyle
PolyLine.EndCapStyle
CircularArc.StartCapStyle
CircularArc.EndCapStyle

ICapStyle.ColorStyle
IColorStyle.Color

Color gradient

IPlanarShape.FillStyle

IFillStyle.FillMode

Color gradient's color

IPlanarShape.FillStyle

IFillStyle.BaseColorStyle
IFillStyle.AdditionalColorStyle
IColorStyle.Color

Solid color

IPlanarShape.FillStyle

IFillStyle.FillMode

Solid color's color

IPlanarShape.FillStyle

IFillStyle.BaseColorStyle
IColorStyle.Color

Pattern

IPlanarShape.FillStyle

IFillStyle.FillMode

Pattern color

IPlanarShape.FillStyle

IFillStyle.BaseColorStyle
IFillStyle.AdditionalColorStyle
IColorStyle.Color

Image

IPlanarShape.FillStyle
PictureShapeBase.Image

IFillStyle.FillMode

Image layout

IPlanarShape.FillStyle
PictureShapeBase.Image

IFillStyle.ImageLayout

Transparency

IPlanarShape.FillStyle
PictureShapeBase.Image

IColorStyle.Transparency
IFillStyle.ImageTransparency

Text font

CaptionedShapeBase.CharacterStyle
ICaptionedShape.GetCharacterStyle Method

ICharacterStyle.FontName

Text style

CaptionedShapeBase.CharacterStyle
ICaptionedShape.GetCharacterStyle Method

ICharacterStyle.Style

Text font size

CaptionedShapeBase.CharacterStyle
ICaptionedShape.GetCharacterStyle Method

ICharacterStyle.Size
ICharacterStyle.SizeInPoints

Text color

CaptionedShapeBase.CharacterStyle
ICaptionedShape.GetCharacterStyle Method

ICharacterStyle.ColorStyle
IColorStyle.Color

Text alignment

CaptionedShapeBase.ParagraphStyle
ICaptionedShape.GetParagraphStyle Method

IParagraphStyle.Alignment

Text line break (word warp)

CaptionedShapeBase.ParagraphStyle
ICaptionedShape.GetParagraphStyle Method

IParagraphStyle.WordWrap

Text trimming

CaptionedShapeBase.ParagraphStyle
ICaptionedShape.GetParagraphStyle Method

IParagraphStyle.Trimming

Text margin

CaptionedShapeBase.ParagraphStyle
ICaptionedShape.GetParagraphStyle Method

IParagraphStyle.Margin

 

See Also

Changing the Shape Color Programmatically