The AxisLabelLayoutAppearance. BehaviorCollection represents an ordered set of rules, which is used to generate a layout algorithm for axis labels.
The effects of each behavior can be toggled on or off using its Enabled property. Behaviors are applied in order from the start of the collection. Behaviors are capable of reporting when they are successful or unsuccessful, and their effects can be optionally rolled back if unsuccessful; this is determined by the EnableRollback property of each Behavior object. By default a behavior will only be applied if label collisions are detected. To ensure that a behavior is always applied, set the UseOnlyToPreventCollisions property to False. Layout behaviors are applied in the order of their appearance in the collection.
The following layout behaviors are provided:
FontScalingAxisLabelLayoutBehavior — Resizes labels to fit the available space. A Font Scaling behavior can make fonts larger or smaller than the original setting of the AxisLabelAppearance.Font property. The range of scaling is defined by the MinimumSize and MaximumSize properties.
WrapTextAxisLabelLayoutBehavior — Wraps labels to multiple lines of text, if space is needed and available.
RotateAxisLabelLayoutBehavior — Rotates labels to a specified angle.
StaggerAxisLabelLayoutBehavior — Arranges labels in alternating rows.
ClipTextAxisLabelLayoutBehavior — Truncates the labels that exceed their bounds, and appends them with an ellipsis.
In addition to the layout behaviors described above, you can create a custom layout behavior. Any object that derives from AxisLabelLayoutBehavior can be added to the collection.