Class CustomZone
Namespace: FastReport.Olap.Controls
Assembly: FastCube.WinForms.dll
Base classs for custom zone control.
public class CustomZone : Control
Inheritance
object ← MarshalByRefObject ← Component ← Control ← CustomZone
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
zoneOwner
Refernce to zone owner.
protected CustomZoneOwner zoneOwner
Field Value
Properties
Restrictions
Gets or sets zone restrictions.
public ZoneRestrictions Restrictions { get; set; }
Property Value
ZoneOwner
Gets owner of the zone.
protected CustomZoneOwner ZoneOwner { get; }
Property Value
Methods
AcceptDrag(object)
Accepts drag.
protected virtual bool AcceptDrag(object dragItem)
Parameters
dragItem
object
Returns
ContextMenuNeeded()
Returns context menu (lazy).
protected ContextMenuStrip ContextMenuNeeded()
Returns
CreateContextMenu()
Creates context menu.
protected virtual ContextMenuStrip CreateContextMenu()
Returns
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
Returns
HandleContextPopup(Point)
Handles contex popup.
protected virtual bool HandleContextPopup(Point pt)
Parameters
pt
Point
Returns
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
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
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
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.
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
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