Class DataZone
Inheritance
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Windows.Forms.Control
DataZone
Assembly: FastReport.Olap.dll
Syntax
public class DataZone : CustomZone, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable
Constructors
DataZone(CustomGrid)
Declaration
public DataZone(CustomGrid Grid)
Parameters
Properties
Declaration
protected virtual bool CanUpdateScrolls { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
ClientRectangle
Declaration
public Rectangle ClientRectangle { get; }
Property Value
| Type |
Description |
| System.Drawing.Rectangle |
|
ClientSize
Declaration
public Size ClientSize { get; }
Property Value
| Type |
Description |
| System.Drawing.Size |
|
ColCount
Declaration
public virtual int ColCount { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Declaration
public override ContextMenuStrip ContextMenuStrip { get; set; }
Property Value
| Type |
Description |
| System.Windows.Forms.ContextMenuStrip |
|
Overrides
System.Windows.Forms.Control.ContextMenuStrip
FirstCellOffset
Declaration
protected virtual Point FirstCellOffset { get; }
Property Value
| Type |
Description |
| System.Drawing.Point |
|
FirstVisibleCol
Declaration
public virtual int FirstVisibleCol { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
FirstVisibleRow
Declaration
public virtual int FirstVisibleRow { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
LastPointInfo
Declaration
protected DataZone.PointInfo LastPointInfo { get; set; }
Property Value
LastVisibleCol
Declaration
public virtual int LastVisibleCol { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
LastVisibleRow
Declaration
public virtual int LastVisibleRow { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
OwnerGrid
Declaration
protected CustomGrid OwnerGrid { get; }
Property Value
RowCount
Declaration
public virtual int RowCount { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
Declaration
public Size ScrollSize { get; }
Property Value
| Type |
Description |
| System.Drawing.Size |
|
Selection
Declaration
public Selection Selection { get; }
Property Value
Methods
ClearSelection()
Declaration
protected void ClearSelection()
ContinueSelection(Point)
Declaration
protected void ContinueSelection(Point pt)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
pt |
|
EnsureVisible(Int32, Int32)
Declaration
public void EnsureVisible(int Col, int Row)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Col |
|
| System.Int32 |
Row |
|
Declaration
protected Rectangle GetColHeaderRect(int Col, int Len)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Col |
|
| System.Int32 |
Len |
|
Returns
| Type |
Description |
| System.Drawing.Rectangle |
|
GetColWidth(Int32)
Declaration
public virtual int GetColWidth(int Index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Index |
|
Returns
| Type |
Description |
| System.Int32 |
|
GetDataPoint(Point)
Declaration
public virtual Point GetDataPoint(Point pt)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
pt |
|
Returns
| Type |
Description |
| System.Drawing.Point |
|
GetDataRect(Point)
Declaration
protected Rectangle GetDataRect(Point pt)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
pt |
|
Returns
| Type |
Description |
| System.Drawing.Rectangle |
|
GetDataRect(Rectangle)
Declaration
protected Rectangle GetDataRect(Rectangle dataRect)
Parameters
| Type |
Name |
Description |
| System.Drawing.Rectangle |
dataRect |
|
Returns
| Type |
Description |
| System.Drawing.Rectangle |
|
Declaration
protected virtual ItemOptions GetHeaderOptions(int Col)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Col |
|
Returns
Declaration
protected virtual int GetHorzScrollMax()
Returns
| Type |
Description |
| System.Int32 |
|
GetPlainText()
Declaration
public virtual string GetPlainText()
Returns
| Type |
Description |
| System.String |
|
GetPointInfo(Point)
Declaration
protected virtual DataZone.PointInfo GetPointInfo(Point pt)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
pt |
|
Returns
Declaration
protected Rectangle GetRowHeaderRect(int Row, int Len)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Row |
|
| System.Int32 |
Len |
|
Returns
| Type |
Description |
| System.Drawing.Rectangle |
|
GetRowHeight(Int32)
Declaration
public virtual int GetRowHeight(int Index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Index |
|
Returns
| Type |
Description |
| System.Int32 |
|
GetRowIndex(Int32)
Declaration
protected virtual int GetRowIndex(int Row)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Row |
|
Returns
| Type |
Description |
| System.Int32 |
|
GetSelectionMaxCol()
Declaration
protected virtual int GetSelectionMaxCol()
Returns
| Type |
Description |
| System.Int32 |
|
GetSelectionMaxRow()
Declaration
protected virtual int GetSelectionMaxRow()
Returns
| Type |
Description |
| System.Int32 |
|
GetSelectionMaxVisibleCol(Boolean)
Declaration
protected virtual int GetSelectionMaxVisibleCol(bool foolVisibility)
Parameters
| Type |
Name |
Description |
| System.Boolean |
foolVisibility |
|
Returns
| Type |
Description |
| System.Int32 |
|
GetSelectionMaxVisibleRow(Boolean)
Declaration
protected virtual int GetSelectionMaxVisibleRow(bool foolVisibility)
Parameters
| Type |
Name |
Description |
| System.Boolean |
foolVisibility |
|
Returns
| Type |
Description |
| System.Int32 |
|
GetText(Int32, Int32)
Declaration
protected virtual string GetText(int Col, int RowIndex)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Col |
|
| System.Int32 |
RowIndex |
|
Returns
| Type |
Description |
| System.String |
|
Declaration
protected virtual int GetVertScrollMax()
Returns
| Type |
Description |
| System.Int32 |
|
InvalidatePointInfo()
Declaration
protected void InvalidatePointInfo()
IsCellFocused(Int32, Int32)
Declaration
protected bool IsCellFocused(int Col, int Row)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Col |
|
| System.Int32 |
Row |
|
Returns
| Type |
Description |
| System.Boolean |
|
IsCellSelected(Int32, Int32)
Declaration
protected bool IsCellSelected(int Col, int Row)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Col |
|
| System.Int32 |
Row |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
protected override bool IsInputKey(Keys keyData)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Keys |
keyData |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
System.Windows.Forms.Control.IsInputKey(System.Windows.Forms.Keys)
MoveFocusedCell(Int32, Int32, Boolean)
Declaration
protected bool MoveFocusedCell(int dx, int dy, bool add)
Parameters
| Type |
Name |
Description |
| System.Int32 |
dx |
|
| System.Int32 |
dy |
|
| System.Boolean |
add |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
protected void MoveScroll(ScrollBar scroll, int delta)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.ScrollBar |
scroll |
|
| System.Int32 |
delta |
|
MoveSizing(SizingInfo)
Declaration
public override void MoveSizing(SizingInfo info)
Parameters
Overrides
OnClientSizeChanged(EventArgs)
Declaration
protected override void OnClientSizeChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Overrides
System.Windows.Forms.Control.OnClientSizeChanged(System.EventArgs)
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.KeyEventArgs |
e |
|
Overrides
System.Windows.Forms.Control.OnKeyDown(System.Windows.Forms.KeyEventArgs)
Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.KeyEventArgs |
e |
|
Overrides
System.Windows.Forms.Control.OnKeyUp(System.Windows.Forms.KeyEventArgs)
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseEventArgs |
e |
|
Overrides
OnMouseLeave(EventArgs)
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Overrides
System.Windows.Forms.Control.OnMouseLeave(System.EventArgs)
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseEventArgs |
e |
|
Overrides
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseEventArgs |
e |
|
Overrides
Declaration
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseEventArgs |
e |
|
Overrides
System.Windows.Forms.Control.OnMouseWheel(System.Windows.Forms.MouseEventArgs)
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.PaintEventArgs |
e |
|
Overrides
System.Windows.Forms.Control.OnPaint(System.Windows.Forms.PaintEventArgs)
Declaration
protected virtual void OnScroll(ScrollEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.ScrollEventArgs |
e |
|
RestoreSelection()
Declaration
protected void RestoreSelection()
Declaration
protected void ScrollIfAtBorder(Point pt)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
pt |
|
SelectAll()
Declaration
SelectCell(Int32, Int32, Boolean)
Declaration
public void SelectCell(int Col, int Row, bool MakeVisible)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Col |
|
| System.Int32 |
Row |
|
| System.Boolean |
MakeVisible |
|
SelectCol(Int32)
Declaration
public void SelectCol(int Col)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Col |
|
SelectCols(Int32, Int32)
Declaration
public void SelectCols(int StartCol, int StopCol)
Parameters
| Type |
Name |
Description |
| System.Int32 |
StartCol |
|
| System.Int32 |
StopCol |
|
SelectRow(Int32)
Declaration
public void SelectRow(int Row)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Row |
|
SelectRows(Int32, Int32)
Declaration
public void SelectRows(int StartRow, int StopRow)
Parameters
| Type |
Name |
Description |
| System.Int32 |
StartRow |
|
| System.Int32 |
StopRow |
|
SetColWidth(Int32, Int32)
Declaration
public virtual void SetColWidth(int Index, int Width)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Index |
|
| System.Int32 |
Width |
|
SetRowHeight(Int32, Int32)
Declaration
public virtual void SetRowHeight(int Index, int Height)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Index |
|
| System.Int32 |
Height |
|
Declaration
protected void SetScroll(ScrollBar scroll, int value)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.ScrollBar |
scroll |
|
| System.Int32 |
value |
|
SetSelection(Point)
Declaration
protected void SetSelection(Point pt)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
pt |
|
StartSelection(Point)
Declaration
protected void StartSelection(Point pt)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
pt |
|
StartSelection(Int32, Int32, Boolean)
Declaration
protected void StartSelection(int Col, int Row, bool AddCell)
Parameters
| Type |
Name |
Description |
| System.Int32 |
Col |
|
| System.Int32 |
Row |
|
| System.Boolean |
AddCell |
|
StartSelectionUpdate()
Declaration
protected virtual void StartSelectionUpdate()
StartSizing(SizingInfo)
Declaration
public override void StartSizing(SizingInfo info)
Parameters
Overrides
StopSelectionUpdate()
Declaration
protected virtual void StopSelectionUpdate()
StopSizing(SizingInfo)
Declaration
public override void StopSizing(SizingInfo info)
Parameters
Overrides
UpdateCursor()
Declaration
protected void UpdateCursor()
Declaration
public virtual void UpdateScrolls(bool updateHorz, bool updateVert)
Parameters
| Type |
Name |
Description |
| System.Boolean |
updateHorz |
|
| System.Boolean |
updateVert |
|