60002126 I would like LineWeightCombo ColorCombo and LinetypeCombo provided like layercombo

Article 60002126
Type Wish
Product Engine
Version 6027
Date Added 1/16/2014 12:00:00 AM
Fixed (1/16/2014 12:00:00 AM)
Submitted by Levi

Summary

I would like LineWeightCombo ColorCombo and LinetypeCombo provided like layercombo

Solution

In version 6028 we provide 3 new controls that can be used to easily select lineweight , linetype and pencolor to the entities and also to the active properties of the Document.

Please read below the various properties that these controls have.

1) vdLineWeightCombo


summary> Get/Set the Document that the Control should interact with.
public VectorDraw.Professional.vdObjects.vdDocument LineWeightDocument

summary>Get/Set the Main Form where the LineWeightCombo is added. This is used only to choose either to open the list upward or downward depending the position and the height of the main application.This property can only be used in .NET applications.
public Form ApplicationsMainForm

summary>The color of the Selected lineweight.
public Color SelectedLineWeightColor

summary>The background color of the combobox.
public Color BackgroundColor

summary>The color of every text in the combobox.
public Color TextColor

summary> Get/Set the font used to display the string of the lineweight
remarks> Default value is Microsoft Sans Serif", 8.25f, FontStyle.Regular
public Font LineWeightFont

summary>A method to set the LineWeight font.
param name="name">The name of the font.
param name="size">The size of the font.
param name="style">The style of the Font
remarks> This method is exported specially for vb6 users , for .NET it is better to use directly the LineWeightFont property.
public void SetLineWeightFont(string name, float size, int style)

summary>Get/Set the Maximum number of lineweights to be shown at the Drop Down List.
public int MaxNumberOfLineWeightsShown

summary>Get/Set a value representing if the icon in front of the combo box is shown.
remarks>Default value true
public bool ShowIconImage

2) vdLinetypeCombo


summary> Get/Set the Document that the Control should interact with.
public VectorDraw.Professional.vdObjects.vdDocument LinetypesDocument

summary> Get/Set the Main Form where the LinetypeControl is added. This is necessary for Focus and other visual issues.
public Form ApplicationsMainForm

summary> Get/Set the Maximum number of Linetypes to be shown at the Drop Down List.
public int MaxNumberOfLinetypesShown

summary>The color of the Selected Linetype.
public Color SelectedLinetypeColor

summary> The background color of the combobox.
public Color BackgroundColor

summary>The color of every text in the combobox.
public Color TextColor

summary>Get/Set the font used to display the name of the linetype
remarks> Default value is Microsoft Sans Serif", 8.25f, FontStyle.Regular.
public Font LinetypeFont

summary>A method to set the linetype font.
param name="name">The name of the font.
param name="size">The size of the font.
param name="style">The style of the Font
remarks> This method is exported specially for vb6 users , for .NET it is better to use directly the LinetypeFont property.
public void SetLinetypeFont(string name, float size, int style)

summary> Get/Set a value representing if the icon in front of the combo box is shown.
remarks>Default value true
public bool ShowIconImage

3)vdColorCombo


summary> Get/Set the Document that the Control should interact with.
public VectorDraw.Professional.vdObjects.vdDocument ColorDocument

summary>Get/Set the Main Form where the ColorControl is added. This is used only to choose either to open the list upward or downward depending the position and the height of the main application.This property can only be used in .NET applications.
public Form ApplicationsMainForm

summary>The background color of the combobox.
public Color BackgroundColor

summary>The color of every text in the combobox.
public Color TextColor

summary>Get/Set the font used to display the name of the Color
remarks> Default value is Microsoft Sans Serif", 8.25f, FontStyle.Regular.
public Font ColorFont

summary>A method to set the Color's font.
param name="name">The name of the font.
param name="size">The size of the font.
param name="style">The style of the Font
remarks> This method is exported specially for vb6 users , for .NET it is better to use directly the ColorFont property.
public void SetColorFont(string name, float size, int style)

summary> Get/Set a value representing if the icon in front of the combo box is shown.
remarks>Default value true
public bool ShowIconImage

See also article 60002059 for usage and sourcecode of vdfCAD.

Send comments on this topic.