Saturday, 6 September 2025

Key Properties of SplitContainer

There are some properties of SplitContainer that are well-worth remembering for programming efficiency.

Recall that a property in C# is a special encapsulation of a class field (typically with internal setter and getter methods). The set method uses an implicit value keyword.

Here are some key ones:
  1. Panel1 - the leftmost or topmost panel in a SplitContainer
  2. Panel2 - the rightmost or bottommost panel in SplitContainer
  3. FixedPanel - which panel remains fixed sized when container is resized
  4. Orientation - orientation of the panels
  5. Panel1Collapsed - whether Panel1 is collapsed
  6. Panel2Collapsed - whether Panel2 is collapsed
  7. BorderStyle - container border style

No comments:

Post a Comment