Version

Using the Behaviors Collection

The AxisLabelLayoutAppearance. BehaviorCollection represents an ordered set of rules, which is used to generate a layout algorithm for axis labels.

Shows the Behavior Collection editor you get at design time in Visual Studio.

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:

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.