Table of Contents

Class AxisZone

Namespace: FastReport.Olap.Controls
Assembly: FastCube.WinForms.dll

Implementation on zone control for axis.

public abstract class AxisZone : CustomZone

Inheritance

objectMarshalByRefObjectComponentControlCustomZoneAxisZone

Derived

XAxisZone, YAxisZone

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

AxisZone(CustomGrid)

Creates a new instance.

public AxisZone(CustomGrid Grid)

Parameters

Grid CustomGrid

Properties

AxisAutoSize

Gets or sets indicator that axis has auto size.

public bool AxisAutoSize { get; set; }

Property Value

bool

AxisAutoSizeConstraint

Gets or sets indicator that axis has size constraint.

public int AxisAutoSizeConstraint { get; set; }

Property Value

int

AxisContainer

Gets axis container.

public abstract AxisContainer AxisContainer { get; }

Property Value

AxisContainer

BaseRequiredSize

Gets base required size.

protected int BaseRequiredSize { get; }

Property Value

int

BottomFrame

Gets or sets bottom frame.

public int BottomFrame { get; set; }

Property Value

int

Cells

Gets refernce to cells information.

[Browsable(false)]
public CellInfos Cells { get; }

Property Value

CellInfos

ClientRectangle

Gets client rectangle.

public Rectangle ClientRectangle { get; }

Property Value

Rectangle

ClientSize

Gets client size.

public Size ClientSize { get; }

Property Value

Size

ContextMenuStrip

Gets or sets the System.Windows.Forms.ContextMenuStrip associated with this control.

public override ContextMenuStrip ContextMenuStrip { get; set; }

Property Value

ContextMenuStrip

FirstVisibleItem

Gets or sets first visible item.

public int FirstVisibleItem { get; set; }

Property Value

int

FirstVisibleLevel

Gets or sets first visible level.

public int FirstVisibleLevel { get; set; }

Property Value

int

Images

Gets or sets images list.

public ImageList Images { get; set; }

Property Value

ImageList

LastPointInfo

Gets or sets the last pointinfo instance.

protected AxisZone.PointInfo LastPointInfo { get; set; }

Property Value

AxisZone.PointInfo

LastVisibleItem

Gets last visible item.

public virtual int LastVisibleItem { get; }

Property Value

int

LastVisibleLevel

Gets last visible level.

public int LastVisibleLevel { get; }

Property Value

int

RightFrame

Gets or sets right frame.

public int RightFrame { get; set; }

Property Value

int

SelEnd

Gets selection end.

public virtual int SelEnd { get; }

Property Value

int

SelStart

Gets selection start.

public virtual int SelStart { get; }

Property Value

int

Methods

AcceptDrag(object)

Accepts drag.

protected override bool AcceptDrag(object dragItem)

Parameters

dragItem object

Returns

bool

CalcCellSize(AxisContainer, CellInfo)

Calcs size of cell.

protected abstract Size CalcCellSize(AxisContainer sender, CellInfo info)

Parameters

sender AxisContainer

info CellInfo

Returns

Size

CreateContextMenu()

Creates context menu.

protected override ContextMenuStrip CreateContextMenu()

Returns

ContextMenuStrip

DoDrawCell(Graphics, DrawerState, CellInfo)

Invokes draw cell.

protected void DoDrawCell(Graphics g, DrawerState state, CellInfo info)

Parameters

g Graphics

state DrawerState

info CellInfo

DoGetCellImageIndex(CellInfo, out int)

Invokes event on getting cell image index.

protected virtual void DoGetCellImageIndex(CellInfo cell, out int imageIndex)

Parameters

cell CellInfo

imageIndex int

DoGetCellSize(CellInfo, DrawerState, bool)

Invokes event on getting cell size.

protected virtual Size DoGetCellSize(CellInfo cell, DrawerState cs, bool growInHeight)

Parameters

cell CellInfo

cs DrawerState

growInHeight bool

Returns

Size

DoGetCellStyle(CellInfo, DrawerState, out Style)

Invokes event on getting cell style.

protected void DoGetCellStyle(CellInfo cell, DrawerState cs, out Style style)

Parameters

cell CellInfo

cs DrawerState

style Style

DoGetCellText(CellInfo, out string)

Invokes event on getting cell text.

protected virtual void DoGetCellText(CellInfo cell, out string text)

Parameters

cell CellInfo

text string

DrawCell(AxisContainer, SliceDrawHeader)

Draws cell.

protected abstract bool DrawCell(AxisContainer sender, SliceDrawHeader rec)

Parameters

sender AxisContainer

rec SliceDrawHeader

Returns

bool

DrawCellForScroll(AxisContainer, SliceDrawHeader)

Draws cell for scroll.

protected abstract bool DrawCellForScroll(AxisContainer sender, SliceDrawHeader rec)

Parameters

sender AxisContainer

rec SliceDrawHeader

Returns

bool

FindItemFromCoordinate(int)

Finds item from coordinate.

protected abstract int FindItemFromCoordinate(int itemCoordinate)

Parameters

itemCoordinate int

Returns

int

FullUpdate()

Updates entire layout.

public void FullUpdate()

GetCellSize(CellInfo, SizingType)

Gets size of cell.

protected abstract int GetCellSize(CellInfo info, SizingType type)

Parameters

info CellInfo

type SizingType

Returns

int

GetItemSize(int)

Gets item size by index.

public abstract int GetItemSize(int itemIndex)

Parameters

itemIndex int

Returns

int

GetPointInfo(Point)

Gets point information.

protected AxisZone.PointInfo GetPointInfo(Point pt)

Parameters

pt Point

Returns

AxisZone.PointInfo

GetPopupValuesId()

Gets popup values id.

protected List<int> GetPopupValuesId()

Returns

List<int>

GetScrollMax(int)

Gets scroll max.

public int GetScrollMax(int defScrollMax)

Parameters

defScrollMax int

Returns

int

GetSize(Rectangle)

Gets size.

protected abstract int GetSize(Rectangle r)

Parameters

r Rectangle

Returns

int

HandleContextPopup(Point)

Handles context popup.

protected override bool HandleContextPopup(Point p)

Parameters

p Point

Returns

bool

InvalidateItem(CellInfo)

Invalidates item.

protected void InvalidateItem(CellInfo info)

Parameters

info CellInfo

InvalidatePointInfo()

Invalidates point information.

protected void InvalidatePointInfo()

IsSelected(CellInfo)

Returns is cell selected.

protected abstract bool IsSelected(CellInfo info)

Parameters

info CellInfo

Returns

bool

MeasureCellSize(CellInfo, bool)

Returns measure cell size.

protected Size MeasureCellSize(CellInfo cell, bool growInHeight)

Parameters

cell CellInfo

growInHeight bool

Returns

Size

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

e EventArgs

An System.EventArgs that contains the event data.

OnDragDrop(DragEventArgs)

Raises the System.Windows.Forms.Control.DragDrop event.

protected override void OnDragDrop(DragEventArgs drgevent)

Parameters

drgevent DragEventArgs

A System.Windows.Forms.DragEventArgs that contains the event data.

OnMouseDoubleClick(MouseEventArgs)

Raises the System.Windows.Forms.Control.MouseDoubleClick event.

protected override void OnMouseDoubleClick(MouseEventArgs e)

Parameters

e MouseEventArgs

An System.Windows.Forms.MouseEventArgs that contains the event data.

OnMouseDown(MouseEventArgs)

Raises the System.Windows.Forms.Control.MouseDown event.

protected override void OnMouseDown(MouseEventArgs e)

Parameters

e MouseEventArgs

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

e EventArgs

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

e MouseEventArgs

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

e MouseEventArgs

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

e PaintEventArgs

A System.Windows.Forms.PaintEventArgs that contains the event data.

PrepareContextMenuFor(ContextMenuStrip, CellInfo)

Prepares context menu.

protected virtual void PrepareContextMenuFor(ContextMenuStrip menu, CellInfo info)

Parameters

menu ContextMenuStrip

info CellInfo

SelectData(CellInfo)

Selects cell data.

protected abstract void SelectData(CellInfo info)

Parameters

info CellInfo

SetCellSize(CellInfo, SizingType, int)

Sets size of cell.

protected abstract void SetCellSize(CellInfo info, SizingType type, int value)

Parameters

info CellInfo

type SizingType

value int

StartSizing(SizingInfo)

Starts sizing.

public override void StartSizing(SizingInfo info)

Parameters

info SizingInfo

StopSizing(SizingInfo)

Stops sizing.

public override void StopSizing(SizingInfo info)

Parameters

info SizingInfo

UpdateCursor()

Updates cursor.

protected void UpdateCursor()

UpdateLayout()

Updates layout.

public void UpdateLayout()

OnGetCellImageIndex

Event on getting cell image index.

public event AxisCellImageIndexEventHandler OnGetCellImageIndex

Event Type

AxisCellImageIndexEventHandler

OnGetCellSize

Event on getting cell size.

public event AxisCellSizeEventHandler OnGetCellSize

Event Type

AxisCellSizeEventHandler

OnGetCellStyle

Event on getting cell style.

public event AxisCellStyleEventHandler OnGetCellStyle

Event Type

AxisCellStyleEventHandler

OnGetCellText

Event on getting cell text.

public event AxisCellTextEventHandler OnGetCellText

Event Type

AxisCellTextEventHandler