Table of Contents

Class CustomZone

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

Base classs for custom zone control.

public class CustomZone : Control

Inheritance

objectMarshalByRefObjectComponentControlCustomZone

Derived

AxisZone, CubeCaptionZone, DataZone, ItemsZone, SliceCaptionZone

Constructors

CustomZone(CustomZoneOwner)

Creates a new instance.

public CustomZone(CustomZoneOwner zoneOwner)

Parameters

zoneOwner CustomZoneOwner

Fields

contextMenuStrip

Refernce to context menu.

protected ContextMenuStrip contextMenuStrip

Field Value

ContextMenuStrip

zoneOwner

Refernce to zone owner.

protected CustomZoneOwner zoneOwner

Field Value

CustomZoneOwner

Properties

Restrictions

Gets or sets zone restrictions.

public ZoneRestrictions Restrictions { get; set; }

Property Value

ZoneRestrictions

ZoneOwner

Gets owner of the zone.

protected CustomZoneOwner ZoneOwner { get; }

Property Value

CustomZoneOwner

Methods

AcceptDrag(object)

Accepts drag.

protected virtual bool AcceptDrag(object dragItem)

Parameters

dragItem object

Returns

bool

ContextMenuNeeded()

Returns context menu (lazy).

protected ContextMenuStrip ContextMenuNeeded()

Returns

ContextMenuStrip

CreateContextMenu()

Creates context menu.

protected virtual ContextMenuStrip CreateContextMenu()

Returns

ContextMenuStrip

DrawSizingLine(Graphics)

Draws sizing line.

protected virtual void DrawSizingLine(Graphics g)

Parameters

g Graphics

GetDragObject(DragEventArgs)

Gets drag object.

protected object GetDragObject(DragEventArgs e)

Parameters

e DragEventArgs

Returns

object

HandleContextPopup(Point)

Handles contex popup.

protected virtual bool HandleContextPopup(Point pt)

Parameters

pt Point

Returns

bool

InvalidateSizingLine(SizingInfo)

Invalidates sizing line.

public virtual void InvalidateSizingLine(SizingInfo info)

Parameters

info SizingInfo

MoveDrag(bool, Point)

Moves drag.

protected virtual void MoveDrag(bool accepted, Point location)

Parameters

accepted bool

location Point

MoveSizing(SizingInfo)

Moves sizing.

public virtual void MoveSizing(SizingInfo info)

Parameters

info SizingInfo

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.

OnDragLeave(EventArgs)

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

protected override void OnDragLeave(EventArgs e)

Parameters

e EventArgs

An System.EventArgs that contains the event data.

OnDragOver(DragEventArgs)

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

protected override void OnDragOver(DragEventArgs drgevent)

Parameters

drgevent DragEventArgs

A System.Windows.Forms.DragEventArgs 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.

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.

ProcessCmdKey(ref Message, Keys)

Processes a command key.

protected override bool ProcessCmdKey(ref Message msg, Keys keyData)

Parameters

msg Message

A System.Windows.Forms.Message, passed by reference, that represents the window message to process.

keyData Keys

One of the System.Windows.Forms.Keys values that represents the key to process.

Returns

bool

true if the character was processed by the control; otherwise, false.

StartSizing(SizingInfo)

Starts sizing.

public virtual void StartSizing(SizingInfo info)

Parameters

info SizingInfo

StopSizing(SizingInfo)

Stops sizing.

public virtual void StopSizing(SizingInfo info)

Parameters

info SizingInfo

UpdateSizingDrawInfo(SizingInfo)

Updates sizing draw information.

public virtual void UpdateSizingDrawInfo(SizingInfo info)

Parameters

info SizingInfo