ESRI.ArcGIS.ADF.IMS
RotationalAngles Property
See Also 
ESRI.ArcGIS.ADF.IMS.Display.Renderer Namespace > LabelRenderer Class : RotationalAngles Property




Gets or sets an array of valid label angles.

Syntax

Visual Basic (Declaration) 
Public Property RotationalAngles As Integer()
Visual Basic (Usage)Copy Code
Dim instance As LabelRenderer
Dim value() As Integer
 
instance.RotationalAngles = value
 
value = instance.RotationalAngles
C# 
public int[] RotationalAngles {get; set;}

Example

For an example of using this property, see the SimpleLabelRenderer overview.

Remarks

The rotational angles are possible angles that the label can be placed at, relative to the labeled point. By default, labels are always placed horizontally. To rotate a label, a comma-delimited list of up to eight rotational angles can be given and are prioritized from first to last. For example, if the first priority is to place labels at 45 degrees and the second priority is at 30 degrees, the RotationalAngles value is "45,30".

RotationalAngles is only valid with point layers.

LabelPriority takes precedence over RotationalAngles. If labels are not rotating as expected, try removing the LabelPriority setting.

See Also

© 2010 All Rights Reserved.