Class DataZone
Namespace: FastReport.Olap.Controls
Assembly: FastCube.Mono.dll
Implementaton of zone for data.
public class DataZone : CustomZone
Inheritance
object ← MarshalByRefObject ← Component ← Control ← CustomZone ← DataZone
Derived
Inherited Members
CustomZone.contextMenuStrip, CustomZone.zoneOwner, CustomZone.Restrictions, CustomZone.ZoneOwner, CustomZone.InvalidateSizingLine(SizingInfo), CustomZone.MoveSizing(SizingInfo), CustomZone.StartSizing(SizingInfo), CustomZone.StopSizing(SizingInfo), CustomZone.UpdateSizingDrawInfo(SizingInfo), CustomZone.AcceptDrag(object), CustomZone.ContextMenuNeeded(), CustomZone.CreateContextMenu(), CustomZone.DrawSizingLine(Graphics), CustomZone.GetDragObject(DragEventArgs), CustomZone.HandleContextPopup(Point), CustomZone.MoveDrag(bool, Point), CustomZone.OnDragDrop(DragEventArgs), CustomZone.OnDragLeave(EventArgs), CustomZone.OnDragOver(DragEventArgs), CustomZone.OnMouseDown(MouseEventArgs), CustomZone.OnMouseMove(MouseEventArgs), CustomZone.OnMouseUp(MouseEventArgs), CustomZone.ProcessCmdKey(ref Message, Keys)
Constructors
DataZone(CustomGrid)
Creates a new instance.
public DataZone(CustomGrid Grid)
Parameters
Grid
CustomGrid
Properties
CanUpdateScrolls
Gets that can update scrols.
protected virtual bool CanUpdateScrolls { get; }
Property Value
ClientRectangle
Gets client rectangle.
public Rectangle ClientRectangle { get; }
Property Value
ClientSize
Gets client size.
public Size ClientSize { get; }
Property Value
ColCount
Gets numbe rof columns.
public virtual int ColCount { get; }
Property Value
ContextMenuStrip
Gets or sets context menu strip.
public override ContextMenuStrip ContextMenuStrip { get; set; }
Property Value
FirstCellOffset
Gets first cell offset.
protected virtual Point FirstCellOffset { get; }
Property Value
FirstVisibleCol
Gets or sets first visible column.
public virtual int FirstVisibleCol { get; set; }
Property Value
FirstVisibleRow
Gets or sets fisrt visible row.
public virtual int FirstVisibleRow { get; set; }
Property Value
LastPointInfo
Gets or sets last point information.
protected DataZone.PointInfo LastPointInfo { get; set; }
Property Value
LastVisibleCol
Gets last visible column.
public virtual int LastVisibleCol { get; }
Property Value
LastVisibleRow
Gets last visible row.
public virtual int LastVisibleRow { get; }
Property Value
OwnerGrid
Gets reference to owner grid.
protected CustomGrid OwnerGrid { get; }
Property Value
RowCount
Gets number of rows.
public virtual int RowCount { get; }
Property Value
ScrollSize
Gets size of the scroll.
public Size ScrollSize { get; }
Property Value
Selection
Gets the selection.
public Selection Selection { get; }
Property Value
Methods
ClearSelection()
Clears selection.
protected void ClearSelection()
ContinueSelection(Point)
Continues selection.
protected void ContinueSelection(Point pt)
Parameters
pt
Point
EnsureVisible(int, int)
Ensures visible.
public void EnsureVisible(int Col, int Row)
Parameters
Col
int
Row
int
GetColHeaderRect(int, int)
Gets column header rect.
protected Rectangle GetColHeaderRect(int Col, int Len)
Parameters
Col
int
Len
int
Returns
GetColWidth(int)
Gets column width.
public virtual int GetColWidth(int Index)
Parameters
Index
int
Returns
GetDataPoint(Point)
Gets data point.
public virtual Point GetDataPoint(Point pt)
Parameters
pt
Point
Returns
GetDataRect(Rectangle)
Gets data rectangle.
protected Rectangle GetDataRect(Rectangle dataRect)
Parameters
dataRect
Rectangle
Returns
GetDataRect(Point)
Gets data rectangle.
protected Rectangle GetDataRect(Point pt)
Parameters
pt
Point
Returns
GetHeaderOptions(int)
Gets header options.
protected virtual ItemOptions GetHeaderOptions(int Col)
Parameters
Col
int
Returns
GetHorzScrollMax()
Gets horizontal scroll max.
protected virtual int GetHorzScrollMax()
Returns
GetPlainText()
Gets plain text.
public virtual string GetPlainText()
Returns
GetPointInfo(Point)
Gets point information.
protected virtual DataZone.PointInfo GetPointInfo(Point pt)
Parameters
pt
Point
Returns
GetRowHeaderRect(int, int)
Gets row header rect.
protected Rectangle GetRowHeaderRect(int Row, int Len)
Parameters
Row
int
Len
int
Returns
GetRowHeight(int)
Gets row hieght.
public virtual int GetRowHeight(int Index)
Parameters
Index
int
Returns
GetRowIndex(int)
Gets row index.
protected virtual int GetRowIndex(int Row)
Parameters
Row
int
Returns
GetSelectionMaxCol()
Gets selection max column.
protected virtual int GetSelectionMaxCol()
Returns
GetSelectionMaxRow()
Gets selection max row.
protected virtual int GetSelectionMaxRow()
Returns
GetSelectionMaxVisibleCol(bool)
Gets selection max visible column.
protected virtual int GetSelectionMaxVisibleCol(bool foolVisibility)
Parameters
foolVisibility
bool
Returns
GetSelectionMaxVisibleRow(bool)
Gets selection max visible row.
protected virtual int GetSelectionMaxVisibleRow(bool foolVisibility)
Parameters
foolVisibility
bool
Returns
GetText(int, int)
Gets text by column and row.
protected virtual string GetText(int Col, int RowIndex)
Parameters
Col
int
RowIndex
int
Returns
GetVertScrollMax()
Gets vertical scroll max.
protected virtual int GetVertScrollMax()
Returns
InvalidatePointInfo()
Invalidates point info.
protected void InvalidatePointInfo()
IsCellFocused(int, int)
Returns indicator that cell is focused.
protected bool IsCellFocused(int Col, int Row)
Parameters
Col
int
Row
int
Returns
IsCellSelected(int, int)
Returns indicator that cell is selected.
protected bool IsCellSelected(int Col, int Row)
Parameters
Col
int
Row
int
Returns
IsInputKey(Keys)
Determines whether the specified key is a regular input key or a special key that requires preprocessing.
protected override bool IsInputKey(Keys keyData)
Parameters
keyData
Keys
One of the System.Windows.Forms.Keys values.
Returns
true if the specified key is a regular input key; otherwise, false.
MoveFocusedCell(int, int, bool)
Moves focused cell.
protected bool MoveFocusedCell(int dx, int dy, bool add)
Parameters
dx
int
dy
int
add
bool
Returns
MoveScroll(ScrollBar, int)
Moves scroll.
protected void MoveScroll(ScrollBar scroll, int delta)
Parameters
scroll
ScrollBar
delta
int
MoveSizing(SizingInfo)
Moves sizing.
public override void MoveSizing(SizingInfo info)
Parameters
info
SizingInfo
OnClientSizeChanged(EventArgs)
Raises the System.Windows.Forms.Control.ClientSizeChanged event.
protected override void OnClientSizeChanged(EventArgs e)
Parameters
An System.EventArgs that contains the event data.
OnKeyDown(KeyEventArgs)
Raises the System.Windows.Forms.Control.KeyDown event.
protected override void OnKeyDown(KeyEventArgs e)
Parameters
A System.Windows.Forms.KeyEventArgs that contains the event data.
OnKeyUp(KeyEventArgs)
Raises the System.Windows.Forms.Control.KeyUp event.
protected override void OnKeyUp(KeyEventArgs e)
Parameters
A System.Windows.Forms.KeyEventArgs that contains the event data.
OnMouseDown(MouseEventArgs)
Raises the System.Windows.Forms.Control.MouseDown event.
protected override void OnMouseDown(MouseEventArgs e)
Parameters
A System.Windows.Forms.MouseEventArgs that contains the event data.
OnMouseLeave(EventArgs)
Raises the System.Windows.Forms.Control.MouseLeave event.
protected override void OnMouseLeave(EventArgs e)
Parameters
An System.EventArgs that contains the event data.
OnMouseMove(MouseEventArgs)
Raises the System.Windows.Forms.Control.MouseMove event.
protected override void OnMouseMove(MouseEventArgs e)
Parameters
A System.Windows.Forms.MouseEventArgs that contains the event data.
OnMouseUp(MouseEventArgs)
Raises the System.Windows.Forms.Control.MouseUp event.
protected override void OnMouseUp(MouseEventArgs e)
Parameters
A System.Windows.Forms.MouseEventArgs that contains the event data.
OnMouseWheel(MouseEventArgs)
Raises the System.Windows.Forms.Control.MouseWheel event.
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
A System.Windows.Forms.MouseEventArgs that contains the event data.
OnPaint(PaintEventArgs)
Raises the System.Windows.Forms.Control.Paint event.
protected override void OnPaint(PaintEventArgs e)
Parameters
A System.Windows.Forms.PaintEventArgs that contains the event data.
OnScroll(ScrollEventArgs)
Handles on scroll event.
protected virtual void OnScroll(ScrollEventArgs e)
Parameters
RestoreSelection()
Restores selection.
protected void RestoreSelection()
ScrollIfAtBorder(Point)
Scrolls if at border.
protected void ScrollIfAtBorder(Point pt)
Parameters
pt
Point
SelectAll()
Selects all.
public void SelectAll()
SelectCell(int, int, bool)
Selects cell.
public void SelectCell(int Col, int Row, bool MakeVisible)
Parameters
Col
int
Row
int
MakeVisible
bool
SelectCol(int)
Selects column.
public void SelectCol(int Col)
Parameters
Col
int
SelectCols(int, int)
Selects columns.
public void SelectCols(int StartCol, int StopCol)
Parameters
StartCol
int
StopCol
int
SelectRow(int)
Selects row.
public void SelectRow(int Row)
Parameters
Row
int
SelectRows(int, int)
Selects rows.
public void SelectRows(int StartRow, int StopRow)
Parameters
StartRow
int
StopRow
int
SetColWidth(int, int)
Sets column width.
public virtual void SetColWidth(int Index, int Width)
Parameters
Index
int
Width
int
SetRowHeight(int, int)
Sets row height.
public virtual void SetRowHeight(int Index, int Height)
Parameters
Index
int
Height
int
SetScroll(ScrollBar, int)
Sets scroll.
protected void SetScroll(ScrollBar scroll, int value)
Parameters
scroll
ScrollBar
value
int
SetSelection(Point)
Sets selection.
protected void SetSelection(Point pt)
Parameters
pt
Point
StartSelection(Point)
Starts selection.
protected void StartSelection(Point pt)
Parameters
pt
Point
StartSelection(int, int, bool)
Starts selection.
protected void StartSelection(int Col, int Row, bool AddCell)
Parameters
Col
int
Row
int
AddCell
bool
StartSelectionUpdate()
Starts selection update.
protected virtual void StartSelectionUpdate()
StartSizing(SizingInfo)
Starts sizing.
public override void StartSizing(SizingInfo info)
Parameters
info
SizingInfo
StopSelectionUpdate()
Stops selection update.
protected virtual void StopSelectionUpdate()
StopSizing(SizingInfo)
Stops sizing.
public override void StopSizing(SizingInfo info)
Parameters
info
SizingInfo
UpdateCursor()
Updates cursor.
protected void UpdateCursor()
UpdateScrolls(bool, bool)
Updates scrolls.
public virtual void UpdateScrolls(bool updateHorz, bool updateVert)
Parameters
updateHorz
bool
updateVert
bool