Class Drawer
Inheritance
System.Object
Drawer
Assembly: FastReport.Olap.dll
Syntax
Constructors
Drawer()
Declaration
Fields
axisCellSpacing
Declaration
protected static readonly int axisCellSpacing
Field Value
Type |
Description |
System.Int32 |
|
BackgroundColor
Declaration
protected Color BackgroundColor
Field Value
Type |
Description |
System.Drawing.Color |
|
DefaultCellBackground
Declaration
protected Color DefaultCellBackground
Field Value
Type |
Description |
System.Drawing.Color |
|
DefaultCellBorder
Declaration
protected Color DefaultCellBorder
Field Value
Type |
Description |
System.Drawing.Color |
|
DefaultCellText
Declaration
protected Color DefaultCellText
Field Value
Type |
Description |
System.Drawing.Color |
|
dropPolygonSize
Declaration
protected Size dropPolygonSize
Field Value
Type |
Description |
System.Drawing.Size |
|
ExpandBorderColor
Declaration
protected Color ExpandBorderColor
Field Value
Type |
Description |
System.Drawing.Color |
|
ExpandLineColor
Declaration
protected Color ExpandLineColor
Field Value
Type |
Description |
System.Drawing.Color |
|
fuelPolygonSize
Declaration
protected Size fuelPolygonSize
Field Value
Type |
Description |
System.Drawing.Size |
|
itemButtonMinTextRect
Declaration
protected static readonly int itemButtonMinTextRect
Field Value
Type |
Description |
System.Int32 |
|
Declaration
public static readonly Size ItemButtonThemeSpacing
Field Value
Type |
Description |
System.Drawing.Size |
|
SelectedCellBackground
Declaration
protected Color SelectedCellBackground
Field Value
Type |
Description |
System.Drawing.Color |
|
SortIndicatorColor
Declaration
protected Color SortIndicatorColor
Field Value
Type |
Description |
System.Drawing.Color |
|
sortPolygonSize
Declaration
protected Size sortPolygonSize
Field Value
Type |
Description |
System.Drawing.Size |
|
sortSize
Declaration
Field Value
Type |
Description |
System.Int32 |
|
SplitterColor
Declaration
protected Color SplitterColor
Field Value
Type |
Description |
System.Drawing.Color |
|
style
Declaration
Field Value
Declaration
public static readonly Size TreeButtonSize
Field Value
Type |
Description |
System.Drawing.Size |
|
Properties
UIStyle
Declaration
public virtual UIStyle UIStyle { get; set; }
Property Value
UIStyleName
Declaration
public virtual string UIStyleName { get; set; }
Property Value
Type |
Description |
System.String |
|
UIStyleNames
Declaration
public virtual string[] UIStyleNames { get; }
Property Value
Type |
Description |
System.String[] |
|
Methods
AlignmentToFlags(Alignment)
Declaration
protected TextFormatFlags AlignmentToFlags(Alignment alignment)
Parameters
Returns
Type |
Description |
System.Windows.Forms.TextFormatFlags |
|
Declaration
public static CheckState CheckStateToWindowsForms(CheckState state)
Parameters
Returns
Type |
Description |
System.Windows.Forms.CheckState |
|
CreateLinearGradientBrush(Rectangle, Color, Color, LinearGradientMode)
Declaration
public static LinearGradientBrush CreateLinearGradientBrush(Rectangle r, Color color1, Color color2, LinearGradientMode mode)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
r |
|
System.Drawing.Color |
color1 |
|
System.Drawing.Color |
color2 |
|
System.Drawing.Drawing2D.LinearGradientMode |
mode |
|
Returns
Type |
Description |
System.Drawing.Drawing2D.LinearGradientBrush |
|
Declaration
public virtual void DrawAxisCell(Graphics g, Font f, bool isColumns, Rectangle r, string text, PropertyOfCellAxis cellProperties, Alignment alignment, DrawerState state, Style style, bool isSelected, out Point treeButtonLocation, out Point hierButtonLocation, ImageList images, int imageIndex, bool showEllipsis)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Font |
f |
|
System.Boolean |
isColumns |
|
System.Drawing.Rectangle |
r |
|
System.String |
text |
|
PropertyOfCellAxis |
cellProperties |
|
Alignment |
alignment |
|
DrawerState |
state |
|
Style |
style |
|
System.Boolean |
isSelected |
|
System.Drawing.Point |
treeButtonLocation |
|
System.Drawing.Point |
hierButtonLocation |
|
System.Windows.Forms.ImageList |
images |
|
System.Int32 |
imageIndex |
|
System.Boolean |
showEllipsis |
|
Declaration
protected void DrawChevron(Graphics g, Rectangle r, Color color, Scrollers scroll)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
System.Drawing.Color |
color |
|
Scrollers |
scroll |
|
Declaration
protected virtual void DrawColHeaderBg(Graphics g, Rectangle r, DrawerState State, bool IsSelected)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
DrawerState |
State |
|
System.Boolean |
IsSelected |
|
Declaration
public virtual void DrawColHeaderCell(Graphics g, Font f, Rectangle r, string text, DrawerState State, bool IsSelected, ItemOptions options, SortDirection sortDirection)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Font |
f |
|
System.Drawing.Rectangle |
r |
|
System.String |
text |
|
DrawerState |
State |
|
System.Boolean |
IsSelected |
|
ItemOptions |
options |
|
SortDirection |
sortDirection |
|
DrawConnector(Graphics, Point, Point)
Declaration
public void DrawConnector(Graphics g, Point start, Point end)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Point |
start |
|
System.Drawing.Point |
end |
|
Declaration
public virtual void DrawDataCell(Graphics g, Font f, Rectangle r, string text, CellState cs, DrawerState ds, Alignment alignment = Alignment.Left, ImageList images = null, int imageIndex = -1, Style style = null, HighlightDrawHandler highlightDraw = null, object data = null)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Font |
f |
|
System.Drawing.Rectangle |
r |
|
System.String |
text |
|
CellState |
cs |
|
DrawerState |
ds |
|
Alignment |
alignment |
|
System.Windows.Forms.ImageList |
images |
|
System.Int32 |
imageIndex |
|
Style |
style |
|
HighlightDrawHandler |
highlightDraw |
|
System.Object |
data |
|
Declaration
public virtual void DrawDropDownButton(Graphics g, Rectangle r, ItemOptions options, SortDirection sortDirection, DrawerState state)
Parameters
Declaration
protected virtual void DrawDropDownButtonBackground(Graphics g, Rectangle r, DrawerState state)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
DrawerState |
state |
|
DrawDropIndicator(Graphics, Rectangle)
Declaration
public virtual void DrawDropIndicator(Graphics g, Rectangle r)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
Declaration
public static ButtonState DrawerStateToButtonState(DrawerState state)
Parameters
Returns
Type |
Description |
System.Windows.Forms.ButtonState |
|
Declaration
public virtual void DrawExpandButton(Graphics g, Rectangle r, bool Expanded, bool IsMouseOver)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
System.Boolean |
Expanded |
|
System.Boolean |
IsMouseOver |
|
DrawGradient(Graphics, Rectangle, Color, Color, GradientType)
Declaration
public static void DrawGradient(Graphics g, Rectangle r, Color c1, Color c2, GradientType gradientType)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
System.Drawing.Color |
c1 |
|
System.Drawing.Color |
c2 |
|
GradientType |
gradientType |
|
DrawGridBody(Graphics, Rectangle)
Declaration
public virtual void DrawGridBody(Graphics g, Rectangle r)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
DrawImageCell(Graphics, Rectangle, DrawerState)
Declaration
public virtual void DrawImageCell(Graphics g, Rectangle r, DrawerState State)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
DrawerState |
State |
|
Declaration
public virtual void DrawItemButton(Graphics g, Font f, Rectangle r, string text, ImageList images, int imageIndex, ItemOptions options, SortDirection sortDirection, DrawerState state)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Font |
f |
|
System.Drawing.Rectangle |
r |
|
System.String |
text |
|
System.Windows.Forms.ImageList |
images |
|
System.Int32 |
imageIndex |
|
ItemOptions |
options |
|
SortDirection |
sortDirection |
|
DrawerState |
state |
|
Declaration
protected virtual void DrawItemButtonBackground(Graphics g, Rectangle r, DrawerState state)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
DrawerState |
state |
|
Declaration
protected virtual void DrawRowHeaderBg(Graphics g, Rectangle r, DrawerState State, bool IsSelected)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
DrawerState |
State |
|
System.Boolean |
IsSelected |
|
Declaration
public virtual void DrawRowHeaderCell(Graphics g, Font f, Rectangle r, string Text, DrawerState State, bool IsSelected)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Font |
f |
|
System.Drawing.Rectangle |
r |
|
System.String |
Text |
|
DrawerState |
State |
|
System.Boolean |
IsSelected |
|
DrawRowIndicator(Graphics, Rectangle)
Declaration
public void DrawRowIndicator(Graphics g, Rectangle r)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
Declaration
public virtual void DrawScroll(Graphics g, Rectangle r, DrawerState state, Scrollers scroll)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
DrawerState |
state |
|
Scrollers |
scroll |
|
DrawSelText(Graphics, Font, Rectangle, String, TextFormatFlags, Int32, Int32, Int32)
Declaration
public void DrawSelText(Graphics g, Font f, Rectangle r, string Text, TextFormatFlags flags, int spacing, int selStart, int selLength)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Font |
f |
|
System.Drawing.Rectangle |
r |
|
System.String |
Text |
|
System.Windows.Forms.TextFormatFlags |
flags |
|
System.Int32 |
spacing |
|
System.Int32 |
selStart |
|
System.Int32 |
selLength |
|
DrawSizingLine(Graphics, Point, Point)
Declaration
public void DrawSizingLine(Graphics g, Point Start, Point Stop)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Point |
Start |
|
System.Drawing.Point |
Stop |
|
DrawSort(Graphics, Point, SortDirection)
Declaration
protected virtual void DrawSort(Graphics g, Point pt, SortDirection sortDirection)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Point |
pt |
|
SortDirection |
sortDirection |
|
DrawStyleBackground(Graphics, Rectangle, Style)
Declaration
public static void DrawStyleBackground(Graphics g, Rectangle r, Style style)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
Style |
style |
|
DrawStyleBorder(Graphics, Rectangle, Style)
Declaration
public static void DrawStyleBorder(Graphics g, Rectangle r, Style style)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
Style |
style |
|
DrawStyleText(Graphics, Rectangle, Style, String, TextFormatFlags)
Declaration
public static void DrawStyleText(Graphics g, Rectangle r, Style style, string text, TextFormatFlags flags)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
Style |
style |
|
System.String |
text |
|
System.Windows.Forms.TextFormatFlags |
flags |
|
DrawText(Graphics, Font, Color, Rectangle, String, TextFormatFlags)
Declaration
public static void DrawText(Graphics g, Font f, Color textColor, Rectangle r, string text, TextFormatFlags flags)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Font |
f |
|
System.Drawing.Color |
textColor |
|
System.Drawing.Rectangle |
r |
|
System.String |
text |
|
System.Windows.Forms.TextFormatFlags |
flags |
|
GetButtonTextColor(DrawerState)
Declaration
public virtual Color GetButtonTextColor(DrawerState state)
Parameters
Returns
Type |
Description |
System.Drawing.Color |
|
GetCheckBoxState(CheckState, DrawerState)
Declaration
protected CheckBoxState GetCheckBoxState(CheckState checkState, DrawerState state)
Parameters
Returns
Type |
Description |
System.Windows.Forms.VisualStyles.CheckBoxState |
|
GetConnectorPen()
Declaration
protected Pen GetConnectorPen()
Returns
Type |
Description |
System.Drawing.Pen |
|
GetControlColor()
Declaration
public virtual Color GetControlColor()
Returns
Type |
Description |
System.Drawing.Color |
|
GetDropPolygon(Rectangle)
Declaration
protected Point[] GetDropPolygon(Rectangle r)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
r |
|
Returns
Type |
Description |
System.Drawing.Point[] |
|
GetExpandBorderPen(Boolean, Boolean)
Declaration
public Pen GetExpandBorderPen(bool Expanded, bool IsMouseOver)
Parameters
Type |
Name |
Description |
System.Boolean |
Expanded |
|
System.Boolean |
IsMouseOver |
|
Returns
Type |
Description |
System.Drawing.Pen |
|
GetExpandBrush(Rectangle)
Declaration
public virtual Brush GetExpandBrush(Rectangle r)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
r |
|
Returns
Type |
Description |
System.Drawing.Brush |
|
GetExpandPen(Boolean, Boolean)
Declaration
public Pen GetExpandPen(bool Expanded, bool IsMouseOver)
Parameters
Type |
Name |
Description |
System.Boolean |
Expanded |
|
System.Boolean |
IsMouseOver |
|
Returns
Type |
Description |
System.Drawing.Pen |
|
GetFuelPolygon(Rectangle)
Declaration
protected Point[] GetFuelPolygon(Rectangle r)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
r |
|
Returns
Type |
Description |
System.Drawing.Point[] |
|
Declaration
protected VisualStyleElement GetHeaderElement(DrawerState State)
Parameters
Returns
Type |
Description |
System.Windows.Forms.VisualStyles.VisualStyleElement |
|
Declaration
public virtual Color GetHeaderTextColor(bool Selected)
Parameters
Type |
Name |
Description |
System.Boolean |
Selected |
|
Returns
Type |
Description |
System.Drawing.Color |
|
Declaration
public Rectangle GetItemButtonDropRect(Rectangle r, ItemOptions options)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
r |
|
ItemOptions |
options |
|
Returns
Type |
Description |
System.Drawing.Rectangle |
|
Declaration
protected PushButtonState GetPushButtonState(DrawerState state)
Parameters
Returns
Type |
Description |
System.Windows.Forms.VisualStyles.PushButtonState |
|
Declaration
protected RadioButtonState GetRadioButtonState(CheckState checkState, DrawerState state)
Parameters
Returns
Type |
Description |
System.Windows.Forms.VisualStyles.RadioButtonState |
|
Declaration
public Size GetScrollerSize()
Returns
Type |
Description |
System.Drawing.Size |
|
GetSortPolygon(Rectangle, SortDirection)
Declaration
protected Point[] GetSortPolygon(Rectangle r, SortDirection sortDirection)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
r |
|
SortDirection |
sortDirection |
|
Returns
Type |
Description |
System.Drawing.Point[] |
|
GetSplitterPen()
Declaration
public Pen GetSplitterPen()
Returns
Type |
Description |
System.Drawing.Pen |
|
Declaration
protected bool HasSpaceForTreeButton(Rectangle r)
Parameters
Type |
Name |
Description |
System.Drawing.Rectangle |
r |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public Size MeasureAxisCell(Font f, Size sz, string text, PropertyOfCellAxis cellProperties, Alignment alignment, DrawerState state, bool groupInHeight, ImageList images, int imageIndex)
Parameters
Type |
Name |
Description |
System.Drawing.Font |
f |
|
System.Drawing.Size |
sz |
|
System.String |
text |
|
PropertyOfCellAxis |
cellProperties |
|
Alignment |
alignment |
|
DrawerState |
state |
|
System.Boolean |
groupInHeight |
|
System.Windows.Forms.ImageList |
images |
|
System.Int32 |
imageIndex |
|
Returns
Type |
Description |
System.Drawing.Size |
|
PaintCheckBox(Graphics, Rectangle, CheckState, Boolean, DrawerState)
Declaration
public virtual void PaintCheckBox(Graphics g, Rectangle r, CheckState checkState, bool IsRadio, DrawerState state)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
CheckState |
checkState |
|
System.Boolean |
IsRadio |
|
DrawerState |
state |
|
PaintHighlight(Graphics, Rectangle, Boolean)
Declaration
public virtual void PaintHighlight(Graphics g, Rectangle r, bool IsActive)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
System.Boolean |
IsActive |
|
PaintHighlight(Graphics, Rectangle, GraphicsPath, Brush, Pen)
Declaration
protected void PaintHighlight(Graphics g, Rectangle r, GraphicsPath path, Brush brush, Pen pen)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
r |
|
System.Drawing.Drawing2D.GraphicsPath |
path |
|
System.Drawing.Brush |
brush |
|
System.Drawing.Pen |
pen |
|
Declaration
public virtual void SetControlStyle(Control control)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Control |
control |
|