SilverScreen Solid Modeler

WidthStyle        

WidthStyle        

Previous topic Next topic  

WidthStyle        

Previous topic Next topic JavaScript is required for the print function  

SilverSharpAPI

 

SilverSharp.WidthStyle

 

 


The WidthStyle class contains a line width and line style that are used to draw lines.



C# Code

 

 class WidthStyle

    {

    public int Width { get; set; }

    public int Style { get; set; }

 

    public WidthStyle(int width, int style);

    public string ToString();

    };

 

 

 

Properties

Property

Description

Width

Gets or sets the line-width property

Style

Gets or sets the line-style property

 

 

Literals

Literal

Description

NORMAL_LINE_WIDTH

An integer value that can be used to interpret Width, or to use in the constructor. It represents a line that is one pixel in width.

WIDE_LINE_WIDTH

An integer value that can be used to interpret Width, or to use in the constructor. It represents a line that has a medium pixel  width.

MAX_LINE_WIDTH

An integer value that can be used to interpret Width, or to use in the constructor. It represents a line that has the maximum pixel width.

SOLID_LINE_STYLE

An integer value that can be used to interpret Style, or to use in the constructor. It represents a linestyle that is unbroken.

INVISIBLE_LINE_STYLE

An integer value that can be used to interpret Style, or to use in the constructor. It represents a linestyle that is invisible.

 

Methods

 

Name

Meaning

WidthStyle

Class constructor

ToString

Formats the WidthStyle object as a string

 


Remarks

To create a normal, solid line you would do the following:

C# Code

 

 using SilverSharp;

 

 . . .

 

 WidthStyle ws = new WidthStyle(NORMAL_LINE_WIDTH, SOLID_LINE_STYLE);

 

 


See Also

EdgeList