Nevron .NET Vision Documentation
Content Panels Overview

Each panel that has paintable content inherits directly or indirectly from the NContentPanel class. In practice all chart panels except the root are content panels.

The content panel has several properties controlling it's visibility, size, content alignment and bounds mode. The following sections discuss each one of them in detail.

Visibility

The visibility of each content panel is controlled through the Visible property. By default this property is set to true, but you can set it to false if you want to hide a panel. The following code will hide the first chart in the Charts collection.

C#
Copy Code
NChart chart = chartControl.Charts[0];
chart.Visible = false;
chartControl.Refresh();
Visual Basic
Copy Code
Dim chart As NChart = chartControl.Charts(0)

chart.Visible = False

chartControl.Refresh()
Size

The size of the panel is controlled by the Size property accepting values in NSizeL format. Note that this property may be discarded in the layout calculation if one of the following conditions are met:

Content Alignment

Each content panel has an associated ContentAlignment property defining how the content is aligned relative to the panel location or bounds. The following table shows how the content alignment works together with the location property:

Top Left Top Center Top Right
Middle Left Middle Center Middle Right
Bottom Left Bottom Center Bottom Right

The red lines on the above images represent the coordinate specified by the location property.

Fit Alignment

When the panel is docked the FitAlignment defines how the panel content will be positioned relative to the panel bounds determined by the docking. The following table shows this:

Top Left Top Center Top Right
Middle Left Middle Center Middle Right
Bottom Left Bottom Center Bottom Right
 
See Also

 

 


©2017. Nevron Software LLC.

Send Feedback