    Contents  Index  Topic Contents
    Previous Topic: DAJoinStyle Class
    Next Topic: DAMatte Class

> ## DALineStyle Class

> Creates a DALineStyle object that represents a (potentially) animated line style. The object defines the various line styles to use when drawing lines. These styles includes the shape of the end of a line, the shape of joints between intersecting lines, the width of the line, and whether the line is drawn with a continuous stroke or as a sequence of dashes.

> Use DALineStyle objects with the Draw function in the DAPath2 class.

> This class inherits from DABehavior.

> - DALineStyle Functions
> - Relevant Properties from the DAStatics Class

> ### DALineStyle Functions

> AntiAliasing

> Color

> Dash

> Detail

> End

> Join

> WidthAnim

> Width

> ####

> AntiAliasing

> DALineStyle Class

> Determines whether or not the line will be antialiased. If antialias is 0 (the default), there is no antialiasing. If it is 1, there is antialiasing.

> linestyleObj.AntiAliasing(
> antialias
> )

> ##### Parameters

> antialias
>   A double that can be either 0 or 1.

> ##### Return Values

> Returns the DALineStyle object.

> ####

> Color

> DALineStyle Class

> Determines the color of a DALineStyle object. The default color is Black.

> linestyleObj.Color(
> color
> )

> ##### Parameters

> color
>   The DAColor object that sets the color of the line. The default color is Black.

> ##### Return Values

> Returns the DALineStyle object.

> ####

> Dash

> DALineStyle Class

> Creates a DALineStyle object that is the result of applying the given DADashStyle object to the existing line style. By default, the dash style is solid.

> linestyleObj.Dash(
> ds
> )

> ##### Parameters

> ds
>   The DADashStyle object that represents the dash style to apply.

> ##### Return Values

> Returns the DALineStyle object.

> ####

> Detail

> DALineStyle Class

> Creates a detail DALineStyle object from an existing line style. A detail line style is not changed by image scaling operations. The detail line style is the default line style, and it has no width.

> linestyleObj.Detail

> ##### Return Values

> Returns the DALineStyle object.

> ####

> End

> DALineStyle Class

> Creates a DALineStyle object that is the result of applying the given end style, es, to the existing line style. By default, the end style is flat.

> linestyleObj.End(
> es
> )

> ##### Parameters

> es
>   The DAEndStyle object that represents the end style behavior to apply.

> ##### Return Values

> Returns the DALineStyle object.

> ####

> Join

> DALineStyle Class

> Creates a DALineStyle object that is the result of applying the given DAJoinStyle object to the existing line style. By default, the join style is beveled.

> linestyleObj.join(
> js
> )

> ##### Parameters

> js
>   The DAJoinStyle object that represents the join style to apply.

> ##### Return Values

> Returns the DALineStyle object.

> ####

> WidthAnim

> DALineStyle Class

> Creates a DANumber object from an existing line style by setting the width of line to the given amount, expressed in points. If the width results in a line less than a single pixel, the line is always drawn as a detail line.

> linestyleObj.WidthAnim(
> width
> )

> ##### Parameters

> width
>   The DANumber object that represents the width of the line. This must be an animated number.

> ##### Return Values

> Returns the DALineStyle object.

> ##### Remarks

> This overrides Detail.

> ####

> Width

> DALineStyle Class

> Same as WidthAnim except that width is a non-animated number (a double).

> linestyleObj.Width(
> width
> )

> ### Relevant Properties from the DAStatics Class

> The following properties are defined in the DAStatics class and are most relevant to objects of type DALineStyle.

> lib.DefaultLineStyle

> lib.EmptyLineStyle

> © 1998 Microsoft Corporation. All rights reserved. Terms of Use.

> Top of Page