Skip to content

HeaderTableLayoutPanel

Radu Martin edited this page Apr 11, 2017 · 14 revisions

HeaderTableLayoutPanel

TableLayoutPanel with highlighted header called HeaderTableLayoutPanel is simple, useful, and cute. This control may show the header in a number of different ways:

HeaderTableLayoutPanel

The HeaderTableLayoutPanel implements just three properties:

  • CaptionText - string property that contains a text for showing. If this property is string.Empty or null then the header will not be shown
  • CaptionStyle - this is enum (HighlightCaptionStyle) property that points a drawing style. It can be: ForeColor, HighlightColor, HighlightStyle, NavisionAxaptaStyle, GroupBoxStyle (see the image above)
  • CaptionLineWidth - byte property that points the width of header's line (0 - the line will not be shown)

Be aware of CaptionLineWidth. If CaptionStyle = HighlightCaptionStyle.HighlightStyle, then two lines with Width = CaptionLineWidth will be shown, one will be above the Header and the second one will be below the header. For CaptionStyle = HighlightCaptionStyle.GroupBoxStyle this property does not do anything.

Clone this wiki locally