MapWinGIS:LabelCategory General

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

Expression

Stores the sql-expression which is used to include single shapes in the category. Sql- expression are generated by Labels.GenerateCategories routine. Currently MapWinGis doesn???t support evaluation of expressions. So external database engines should be used like ADO or ADO.NET.

Syntax

return


LabelOptions

For inner use only

Syntax

return


MinValue

Lower bound for the range of values of the classification field associated with current category. Is used by Labels.ApplyCategories routine when LabelCategory.ExressionType = etSingleField.

Syntax

return


MaxValue

Upper bound for the range of values of the classification field associated with current category. Is used by Labels.ApplyCategories routine when LabelCategory.ExressionType = etSingleField..

Syntax

return


Name

The name of category which can be shown in the user-interface. They must not be unique.

Syntax

return


Priority

Determines the order in which categories will be drawn with the labels layer. The bigger the number ??? the earlier the labels which belong to the category will be drawn. Is important when Labels.AvoidCollisions is used. The categories with lower priority will not be drawn if they overlap labels from categories with higher priority.

Syntax

return


ExpressionType

Doesn't implemented currentlyDetermines the type of sql-expression used for the current category. If etSingleField is chosen the sql???expression is determined by MinValue and MaxValue properties. So when you change one of those properties the Expression property is changed automatically. Internally the value of Expression property is not used at all, anly MinValue and MaxValue properties. If etSqlQuery value is set, it???s responsibility of developer to set Exression property and to determine the labels which fall into this category. ApplyCategories method in this case won???t be working returning an error only expressions based on a single field are evaluated automatically.

Syntax

return

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

This page has been accessed 362 times. This page was last modified on 14 February 2010, at 11:30.


C# : public virtual string Expression { set; get; }
VB6: Property Expression as String
C# : public virtual System.IntPtr get_LabelOptions()
C# : public virtual void set_LabelOptions(ref byte retval)
VB6: Property LabelOptions as Byte
C# : public virtual object MinValue { set; get; }
VB6: Property MinValue as Variant
C# : public virtual object MaxValue { set; get; }
VB6: Property MaxValue as Variant
C# : public virtual string Name { set; get; }
VB6: Property Name as String
C# : public virtual int Priority { set; get; }
VB6: Property Priority as Long
C# :
VB6: