MapWinGIS:Label

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

Category

The index of category to which belongs the current label. Can be determined automatically in ApplyCategories routine according to the MinValue and MaxValue properties of categories if LabelCategory.ExpressionType = etSingleField and is used. In case of the user defined expressions based on several fields (LabelCategory.ExpressionType = etSqlQuery) the index of category to which the current label belongs must be determined externally (using ADO or Ado.NET example).

Syntax

return


IsDrawn

Read-only. Returns true if the label currently is drawn on the map and false otherwise.

Syntax

return


LabelData

for inner use only

Syntax

return


Rotation

The clock-wise rotation angle of the label in degrees. The label which is drawn horizontally has angle of rotation equal to 0.

Syntax

return


Text

The actual text string drawn in the map when label is displayed. May consist of several lines.

Syntax

return


Visible

Toggles visibility of label. Set this property to false if you want to hide the label. Pay attention that the label may not be drawn even if this property will be set to true in case of using AvoidCollision property. If you want to determine whether the label actually was drawn, then use IsDrawn property.

Syntax

return


x

The horizontal coordinate of the label???s position. The disposition of label relative to this point is determined by Alignment, OffsetX and OffsetY properties of the category or parent Labels class.

Syntax

return


y

The vertical coordinate of the label???s position. The disposition of label relative to this point is determined by Alignment, OffsetX and OffsetY properties of the category or parent Labels class.

Syntax

return

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

This page has been accessed 1,133 times. This page was last modified on 11 February 2010, at 14:04.


C# : public virtual int Category { set; get; }
VB6: Property Category as Long
C# : public virtual bool IsDrawn { get; }
VB6: Property IsDrawn as Boolean
C# : public virtual System.IntPtr get_LabelData()
C# : public virtual void set_LabelData(ref byte retval)
VB6: Property LabelData As Byte
C# : public virtual double Rotation { set; get; }
VB6: Property Rotation As Double
C# : public virtual string Text { set; get; }
VB6: Property Text As String
C# : public virtual bool Visible { set; get; }
VB6: Property Visible As Boolean
C# : public virtual double x { set; get; }
VB6: Property x As Double
C# : public virtual double y { set; get; }
VB6: Property y As Double