DotNet 4.8.1 build of DotNetBar
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
using System.ComponentModel;
|
||||
using System.Drawing;
|
||||
using DevComponents.DotNetBar.SuperGrid.Style;
|
||||
|
||||
namespace DevComponents.DotNetBar.SuperGrid
|
||||
{
|
||||
///<summary>
|
||||
/// GridCaption
|
||||
///</summary>
|
||||
public class GridCaption : GridTextRow
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
///<summary>
|
||||
/// GridCaption
|
||||
///</summary>
|
||||
public GridCaption()
|
||||
: this(null)
|
||||
{
|
||||
}
|
||||
|
||||
///<summary>
|
||||
/// GridCaption
|
||||
///</summary>
|
||||
///<param name="text"></param>
|
||||
public GridCaption(string text)
|
||||
: base(text)
|
||||
{
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Hidden properties
|
||||
|
||||
#region RowHeaderVisibility
|
||||
|
||||
/// <summary>
|
||||
/// RowHeaderVisibility
|
||||
/// </summary>
|
||||
[Browsable(false)]
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
|
||||
public new RowHeaderVisibility RowHeaderVisibility
|
||||
{
|
||||
get { return (base.RowHeaderVisibility); }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
#region RenderBorder
|
||||
|
||||
/// <summary>
|
||||
/// RenderBorder
|
||||
/// </summary>
|
||||
/// <param name="g"></param>
|
||||
/// <param name="panel"></param>
|
||||
/// <param name="pstyle"></param>
|
||||
/// <param name="r"></param>
|
||||
protected override void RenderBorder(Graphics g,
|
||||
GridPanel panel, GridPanelVisualStyle pstyle, Rectangle r)
|
||||
{
|
||||
using (Pen pen = new Pen(pstyle.HeaderLineColor))
|
||||
{
|
||||
r.Height--;
|
||||
g.DrawLine(pen, r.X, r.Bottom, r.Right - 1, r.Bottom);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region CanShowRowHeader
|
||||
|
||||
/// <summary>
|
||||
/// CanShowRowHeader
|
||||
/// </summary>
|
||||
/// <param name="panel"></param>
|
||||
/// <returns></returns>
|
||||
protected override bool CanShowRowHeader(GridPanel panel)
|
||||
{
|
||||
return (false);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Style support
|
||||
|
||||
/// <summary>
|
||||
/// ApplyStyleEx
|
||||
/// </summary>
|
||||
/// <param name="style"></param>
|
||||
/// <param name="css"></param>
|
||||
protected override void ApplyStyleEx(TextRowVisualStyle style, StyleType[] css)
|
||||
{
|
||||
foreach (StyleType cs in css)
|
||||
{
|
||||
style.ApplyStyle(SuperGrid.BaseVisualStyles.CaptionStyles[cs]);
|
||||
style.ApplyStyle(SuperGrid.DefaultVisualStyles.CaptionStyles[cs]);
|
||||
style.ApplyStyle(GridPanel.DefaultVisualStyles.CaptionStyles[cs]);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user