- In This Section
- Text Features
- Font Features
- Applying Actions (Imaging Effects) on ImageElement objects
WordArtElement
A WordArtElement – represented by Neodynamic.WebControls.ImageDraw.WordArtElement class – creates stylized text with special effects differing from ordinary text with the added features of gradient color fills and shaping. WordArtElement objects are created by specifying some basic properties such as Text, Font, ForeFill, StrokeFill, WordArtShape, etc.
Text Features
The main features and properties of WordArtElement objects are the following:
- AutoSize
When this feature is enabled (it has been set to True), then the WordArtElement object is automatically resized to display its entire contents. NOTE: If any WordArtShape is used, then AutoSize property is not enabled. - Multi-line Text
When this feature is enabled (Multiline property has been set to True), then the text can span more than one line. - Outlined Text
WordArtElement objects support outlined text by setting up the width of the border along the outline of the text through out StrokeWidth property. In addition, you can specify the fill of the border by setting up the StrokeFill property. - Text Fill
The ForeFill property of WordArtElement objects is used for specifying the foreground fill of the text and StrokeFill property is used for specifying the fill of the border along the outline of the text if StrokeWidth property is greater than zero. You can create gradient or texture fill for WordArtElement objects - Text Alignment
If AutoSize property is disabled, then the text can be aligned inside the WordArtElement's bound which is determined by its X, Y, Width and Height properties. The text can be left-aligned, center-aligned, or right-aligned in both vertical and horizontal directions. - WordArt Shape
WordArtElement objects can be set up to conform/fit a given shape like Circles, Rectangles, Quadrilaterals with effects like Fade, Cascade, Slant; etc.
Syntax sample:
WordArtElement Output Sample:
Font Features
WordArtElement objects support rich font formatting allowing you to use server's installed fonts as well as custom font files (*.ttf) that are stored in your website folders. In addition, you can configure the text font so it's bold, italic, underline, etc; as well as the size and unit of measure (Point, Inch, Millimeter, or Pixel). Learn more about Font settings.
Applying Actions (Imaging Effects) on WordArtElement objects
WordArtElement are useful for drawing custom captions, signs, watermarks, etc; and as just for ImageElement objects, WordArtElement objects can be "affected" by more than one Action due to they feature an Actions property of type Neodynamic.WebControls.ImageDraw.ActionCollection.
Learn more about Actions.