MapWinGIS:Labels Manging categories

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

Table of contents

Contents


Methods and Properties

AddCategory

Adds one LabelCategory and returns it???s reference. In case of failure NULL will be returned. The category will be added as the last within the layer.

Syntax

Parameters

Returns

Reference to the LabelCategory which was added.

return


Category

Returns LabelCategory class with the given Index. In case of improper index NULL is returned.

Syntax

Parameters

return


ClearAllCategories

Removes all label categories within the layer.

Syntax

return


InsertCategory

Inserts LabelCategory to the specified position in the layer and returns it???s reference. The category won???t be inserted and NULL will be returned in case of inappropriate index. Inserting of categories works slower then their adding.

Syntax

Parameters

Returns

Reference to the LabelCategory which was inserted. NULL if inproper index was specified.

return


NumCategories

Read-only. Number of LabelCategories. There after creation of label class is equal to 0.

Syntax

return


RemoveCategory

Removes a category with the specified index. Returns true in case of success.

Syntax

Returns

True if the category was removed and false otherwise.

return


SetGraduatedColor

Sets colors for the existing categories based on their MinValue and MaxValue properties and ColorStart, ColorEnd parameters. The graduated color is set to the element of the label specified by Color parameter.

Syntax

Parameters

Enumeration tkLabelElements

return


SetGraduatedFontSize

Sets size of font for the exiting categories based on their MinValue and MaxValue properties and FontStart, FontEnd parameters.

Syntax

Parameters

return


SetRandomColor

Sets random colors for the existing categories. The intensity of each component of color is defined by appropriate minimum and maximum value which are passed as parameters. The colors are set to the element of the label specified by Color parameter.

Syntax

Parameters

Enumeration tkLabelElements

return

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:Labels_Manging_categories"

This page has been accessed 251 times. This page was last modified on 11 February 2010, at 13:18.


C# : MapWinGis.LabelCategory AddCategory(string Name)
VB6: Function AddCategory(Name as String) as LabelCategory
Name the name of the label category being added.
C# : MapWinGis.LabelCategory get_Category(int Index)
C# : void set_Category(int Index, MapWinGis.LabelCategory pVal)
VB6: Property Category(Index as Long) as LabelCategory
Index The index of category being accessed. Starts from 0.
C# : void ClearAllCategories()
VB6: Sub ClearAllCategories()
C# : MapWinGis.LabelCategory InsetCategory(int Index, string Name)
VB6: Function InsertCategory(Index as Long, Name as String) as LabelCategory
Index the position on which the category will be inserted. Starts from 0.
Name the name of the label category being inserted.
C# : int NumCategories { get; }
VB6: Property NumCategories as Long
C# : bool RemoveCategory(int Index)
VB6: Function RemoveCategory (Index as long) as Boolean
C# : void SetGraduatedColors(MapWinGis.tkLabelElements Color, uint ColorStart, uint ColorEnd)
VB6: Sub SetGraduatedColors(Color as tkLabelElements, ColorStart as OLE_COLOR, ColorEnd as OLE_COLOR)
Color the part of label to which the graduated color will be applied.
ColorStart the starting color of the gradient.
ColorEnd the ending color of the gradient.
leFrameBackground no decription
leFrameOutline no decription
leShadow no decription
leFont no decription
leFontOutline no decription
C# : void SetGraduatedFontSize(int SizeStart, int SizeEnd)
VB6: Sub SetGraduatedFontSize(SizeStart as Long, SizeEnd as Long)
SizeStart the starting size of the font in the gradient.
SizeEnd the ending size of the font in gradient.
C# : void SetRandomColors(MapWinGis.tkLabelElements Color, int MinRed, int MinBlue, int MaxRed, int MaxGreen, int MaxBlue)
VB6: Sub SetRandomColors(Color as tkLabelElements, [MinRed as Long = 0], [MinGreen as Long = 0], [MinBlue as Long = 0], [MaxRed as Long = 255], [MaxGreen as Long = 255], [MaxBlue as Long = 255])
Color the part of label to which the graduated color will be applied.
MinRed Optional. The minimum value of the red component of the color (0-255). Default value = 0.
MinGreen Optional. The minimum value of the green component of the color (0-255). Default value = 0.
MinBlue Optional. The minimum value of the blue component of the color (0-255). Default value = 0.
MaxRed Optional. The minimum value of the red component of the color (0-255). Default value = 255.
MaxGreen Optional. The minimum value of the green component of the color (0-255). Default value = 255.
MaxBlue Optional. The minimum value of the blue component of the color (0-255). Default value = 255.
leFrameBackground no decription
leFrameOutline no decription
leShadow no decription
leFont no decription
leFontOutline no decription