MapWinGIS:Labels Managing labels and parts

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

AddLabel

Adds label with specified parameters as the last label within the layer.

Syntax

Parameters

return


AddPart

Add part to the label with the given index.

Syntax

Parameters

return


ClearAllLabels

Removes all labels within the layer.

Syntax

return


InsertLabel

Inserts a label to the specified position in the layer. The label won???t be inserted and false will be returned in case of inappropriate index. Inserting of labels works slower then their adding.

Syntax

Parameters

Returns

True if the Label was inserted and false otherwise.

return


InsertPart

Inserts a part to the label specified by index. The part won???t be inserted and false will be returned in case of inappropriate part index. Inserting of parts works slower then their adding.

Syntax

Parameters

Returns

True if the part was inserted and false otherwise

return


Label

Returns label by it???s index and the index of part. NULL will be returned in case of improper index.

Syntax

Parameters

return


NumLabels

Read-only. Number of labels.

Syntax

return


NumParts

Read-only. Number of parts for the label with the given index.

Syntax

Parameters

return


RemoveLabel

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

Syntax

Parameters

Returns

True if the label was removed and false otherwise.

return


RemovePart

Removes label???s part with the specified index and part index. Returns true in case of success.

Syntax

Parameters

Returns

True if the part was deleted and false otherwise.

return

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

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


C# : void AddLabel(string Text, double x, double y, double Rotation, int Category)
VB6: Sub AddLabel(Text as String, x as Double, y as Double, [Rotation as Double = 0], [Category as Long = -1])
Text the text string which will be displayed on the map.
x the horizontal position of the label.
y the vertical position of the label.
Rotation Optional. The angle of rotation for the label. The default value = 0.
Category the category to which the new label will belong. The default value = -1 (no category).
C# : void AddPart(int Index, string Text, double x, double y, double Rotation, int Category)
VB6: Sub AddPart(Index as Long, Text as String, x as Double, y as Double, [Rotation as Double = 0], [Category as Long = -1])
Index the index of the label to which the part is added.
Text the text string which will be displayed on the map.
x the horizontal position of the label.
y the vertical position of the label.
Rotation Optional. The angle of rotation for the label. The default value = 0.
Category the category to which the new label will belong. The default value = -1 (no category).
C# : void ClearAllLabels()
VB6: Sub ClearAllLabels()
C# : bool InsertLabel(int Index, string Textm double x, double y, double Rotation, int Category)
VB6: Function InsertLabel(Index as Long, Text as String, x as Double, y as Double, [Rotation as Double = 0], [Category as Long = -1]) as Boolean
Index the index within layer to the which the new label will be placed.
Text the text string which will be displayed on the map.
x the horizontal position of the label.
y the vertical position of the label.
Rotation Optional. The angle of rotation for the label. The default value = 0.
Category the category to which the new label will belong. The default value = -1 (no category).
C# : bool InsertPart(int Index, int Part, string Text, double X, double y, double Rotation, int Category)
VB6: Function InsertPart(Index as Long, Part as Long, Text as String, x as double, y as double, [Rotation as double = 0], [Category as long = -1]) as Boolean
Index the index of the label to which the part is added.
Part the part index to which the new part will be placed.
Text the text string which will be displayed on the map.
x the horizontal position of the label.
y the vertical position of the label.
Rotation Optional. The angle of rotation for the label. The default value = 0.
Category the category to which the new label will belong. The default value = -1 (no category).
C# : MapWinGis.Label get_Label(int Index, int Part)
VB6: Property Label(Index as Long, Part as Long) as Label
Index index of label being accessed.
Part index of label's part being accessed.
C# : int NumLabels { get; }
VB6: Property NumLabels as Long
C# : int get_NumParts(int Index)
VB6: Property NumParts(Index as Long) as Long
Index the index of label withinn the layer. Starts from 0.
C# : bool RemoveLabel(int Index)
VB6: Function RemoveLabel(Index as Long) as Boolean
Index the index of label withinn the layer. Starts from 0.
C# : bool RemovePart(int Index, int Part)
VB6: Function RemovePart(Index as Long, Part as Long) as Boolean
Index the index of label whose part is being deleted.
Part the index of part being deleted.