NShape Reference
TextBase Class

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Advanced >

NShape Reference
TextBase Class

Previous pageReturn to chapter overviewNext page

vBase class for shapes used as label.

Syntax

public abstract class TextShape : RectangleBase

Description

TextBase can but need not be used as a base class for text shapes. It provides support for the following areas:

Hit- and intersection testing
(Re-)Calculating, transforming and resizing

Public Properties

Name

Description

AutoSize

Indicates wether the shape should calculate its size according to its text.

Height

The height of the shape.

Text

The text of the shape.

Width

The width of the shape

Public Methods

Name

Description

CopyFrom

Copies as many properties as possible from the given shape.

Draw

Draws the shape.

DrawThumbnail

Creates a thumbnail image of the shape.

GetControlPointIds

Implementation of Shape.GetControlPointIds.

GetPropertyDefinitions

Implementation of the IEntity.GetPropertyDefinitions pseudo member.

HasControlPointCapability

Tests, whether a control point has at least one of a set of given capabilities.

Protected Methods

Name

Description

CalculatePath

Calculates the shape's graphics path at the point of origin.

Constructors

Constructs a new shape instance.

InitializeToDefault

Initializes the shape with default values.

IntersectsWithCore

Implementation of Shape.IntersectsWith.

InvalidateDrawCache

Clears all objects and buffers needed for drawing the shape so that they will be recalculated the next time.

LoadFieldsCore

Implementation of IEntity.LoadFields.

SaveFieldsCore

Implementation of IEntity.SaveFields.

Derived Classes

Derived classes are:

LabelBase

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape