Class ItemsZone
Namespace: FastReport.Olap.Controls
Assembly: FastCube.Mono.dll
Implementation of zone for items.
public class ItemsZone : CustomZone
Inheritance
object ← MarshalByRefObject ← Component ← Control ← CustomZone ← ItemsZone
Derived
SliceFieldsZone, SliceItemsZone
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
ItemsZone(CustomZoneOwner)
Createas a new instance.
public ItemsZone(CustomZoneOwner zoneOwner)
Parameters
zoneOwner
CustomZoneOwner
Fields
dropDownFromItem
Indicator for dropdown from item.
protected bool dropDownFromItem
Field Value
popupWindow
Reference to popup.
protected PopupWindow popupWindow
Field Value
Properties
AllowDrag
Gets indocator that is allow drag.
protected virtual bool AllowDrag { get; }
Property Value
ContextMenuStrip
Gets or sets the System.Windows.Forms.ContextMenuStrip associated with this control.
public override ContextMenuStrip ContextMenuStrip { get; set; }
Property Value
FirstVisibleItem
Gets or sets index of first visibile item.
public int FirstVisibleItem { get; set; }
Property Value
Images
Gets or sets images list.
public ImageList Images { get; set; }
Property Value
ItemCount
Gets number of items.
protected virtual int ItemCount { get; }
Property Value
ItemDirection
Gets or sets direction of item.
protected ItemsZone.Direction ItemDirection { get; set; }
Property Value
LastPointInfo
Gets or sets the last point information.
protected ItemsZone.PointInfo LastPointInfo { get; set; }
Property Value
RequiredSize
Gets required size.
public virtual Size RequiredSize { get; }
Property Value
Spacing
Gets spacing.
public int Spacing { get; }
Property Value
Methods
CreatePopupWindow(object)
Creates a popup window for item.
protected virtual PopupWindow CreatePopupWindow(object item)
Parameters
item
object
Returns
DropDown(int)
Drops down popup window by item index.
public void DropDown(int Index)
Parameters
Index
int
FullUpdate()
Updates entire layout.
public virtual void FullUpdate()
GetDragIndexAt(Point, out int)
Gets drag index at point.
protected ItemsZone.DragPosition GetDragIndexAt(Point pt, out int index)
Parameters
pt
Point
index
int
Returns
GetEmptyText()
Gets empty text.
protected virtual string GetEmptyText()
Returns
GetIndexAt(Point)
Gets index at point.
protected int GetIndexAt(Point pt)
Parameters
pt
Point
Returns
GetItem(int)
Gets item by index.
public virtual object GetItem(int Index)
Parameters
Index
int
Returns
GetItemHeight(int)
Gets height of item by index.
protected virtual int GetItemHeight(int Index)
Parameters
Index
int
Returns
GetItemImageIndex(int)
Gets item index of image.
protected virtual int GetItemImageIndex(int Index)
Parameters
Index
int
Returns
GetItemOptions(object)
Gets item options.
protected virtual ItemOptions GetItemOptions(object item)
Parameters
item
object
Returns
GetItemRect(int)
Gets item rectangle by index.
protected Rectangle GetItemRect(int Index)
Parameters
Index
int
Returns
GetItemSortDirection(object)
Gets item sort direction.
protected virtual SortDirection GetItemSortDirection(object item)
Parameters
item
object
Returns
GetItemText(object)
Gets text of item.
protected virtual string GetItemText(object item)
Parameters
item
object
Returns
GetItemWidth(int)
Gets width of item by index.
protected virtual int GetItemWidth(int Index)
Parameters
Index
int
Returns
GetItemsRectangle()
Gets items rectangle.
protected Rectangle GetItemsRectangle()
Returns
GetPointInfo(Point)
Gets point information by point.
protected virtual ItemsZone.PointInfo GetPointInfo(Point pt)
Parameters
pt
Point
Returns
HandleContextPopup(Point)
Handles contex popup.
protected override bool HandleContextPopup(Point pt)
Parameters
pt
Point
Returns
InitDrag()
Initializes drag.
protected virtual void InitDrag()
InvalidateItem(int)
Invalidates item by index.
protected void InvalidateItem(int Index)
Parameters
Index
int
InvalidatePointInfo()
invalidates point information.
protected void InvalidatePointInfo()
InvalidateScroll(Scrollers)
Invalidates scroll.
protected void InvalidateScroll(Scrollers scroll)
Parameters
scroll
Scrollers
MoveDrag(bool, Point)
Moves drag.
protected override void MoveDrag(bool accepted, Point location)
Parameters
accepted
bool
location
Point
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.
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.
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.
PaintItem(Graphics, Rectangle, int)
Paints the item.
protected virtual void PaintItem(Graphics g, Rectangle r, int Index)
Parameters
g
Graphics
Index
int
PaintScroller(Graphics, Rectangle, Scrollers, bool)
Poaints the scroller.
protected void PaintScroller(Graphics g, Rectangle r, Scrollers scroller, bool IsEnabled)
Parameters
g
Graphics
scroller
Scrollers
IsEnabled
bool
PrepareContextMenuFor(ContextMenuStrip, int)
Prepares context menu.
protected virtual void PrepareContextMenuFor(ContextMenuStrip menu, int index)
Parameters
menu
ContextMenuStrip
index
int
Scroll(Scrollers)
Scrolls the scroller.
protected void Scroll(Scrollers scroller)
Parameters
scroller
Scrollers
SetItemWidth(int, int)
Sets width of item by index.
protected virtual void SetItemWidth(int Index, int NewWidth)
Parameters
Index
int
NewWidth
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.
protected virtual void UpdateLayout()
OnGetImageIndex
Event on getting image index.
public event ImageIndexEventHandler OnGetImageIndex