Table of Contents

Class ItemsZone

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

Implementation of zone for items.

public class ItemsZone : CustomZone

Inheritance

objectMarshalByRefObjectComponentControlCustomZoneItemsZone

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

bool

popupWindow

Reference to popup.

protected PopupWindow popupWindow

Field Value

PopupWindow

Properties

AllowDrag

Gets indocator that is allow drag.

protected virtual bool AllowDrag { get; }

Property Value

bool

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 index of first visibile item.

public int FirstVisibleItem { get; set; }

Property Value

int

Images

Gets or sets images list.

public ImageList Images { get; set; }

Property Value

ImageList

ItemCount

Gets number of items.

protected virtual int ItemCount { get; }

Property Value

int

ItemDirection

Gets or sets direction of item.

protected ItemsZone.Direction ItemDirection { get; set; }

Property Value

ItemsZone.Direction

LastPointInfo

Gets or sets the last point information.

protected ItemsZone.PointInfo LastPointInfo { get; set; }

Property Value

ItemsZone.PointInfo

RequiredSize

Gets required size.

public virtual Size RequiredSize { get; }

Property Value

Size

Spacing

Gets spacing.

public int Spacing { get; }

Property Value

int

Methods

CreatePopupWindow(object)

Creates a popup window for item.

protected virtual PopupWindow CreatePopupWindow(object item)

Parameters

item object

Returns

PopupWindow

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

ItemsZone.DragPosition

GetEmptyText()

Gets empty text.

protected virtual string GetEmptyText()

Returns

string

GetIndexAt(Point)

Gets index at point.

protected int GetIndexAt(Point pt)

Parameters

pt Point

Returns

int

GetItem(int)

Gets item by index.

public virtual object GetItem(int Index)

Parameters

Index int

Returns

object

GetItemHeight(int)

Gets height of item by index.

protected virtual int GetItemHeight(int Index)

Parameters

Index int

Returns

int

GetItemImageIndex(int)

Gets item index of image.

protected virtual int GetItemImageIndex(int Index)

Parameters

Index int

Returns

int

GetItemOptions(object)

Gets item options.

protected virtual ItemOptions GetItemOptions(object item)

Parameters

item object

Returns

ItemOptions

GetItemRect(int)

Gets item rectangle by index.

protected Rectangle GetItemRect(int Index)

Parameters

Index int

Returns

Rectangle

GetItemSortDirection(object)

Gets item sort direction.

protected virtual SortDirection GetItemSortDirection(object item)

Parameters

item object

Returns

SortDirection

GetItemText(object)

Gets text of item.

protected virtual string GetItemText(object item)

Parameters

item object

Returns

string

GetItemWidth(int)

Gets width of item by index.

protected virtual int GetItemWidth(int Index)

Parameters

Index int

Returns

int

GetItemsRectangle()

Gets items rectangle.

protected Rectangle GetItemsRectangle()

Returns

Rectangle

GetPointInfo(Point)

Gets point information by point.

protected virtual ItemsZone.PointInfo GetPointInfo(Point pt)

Parameters

pt Point

Returns

ItemsZone.PointInfo

HandleContextPopup(Point)

Handles contex popup.

protected override bool HandleContextPopup(Point pt)

Parameters

pt Point

Returns

bool

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

e EventArgs

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

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.

PaintItem(Graphics, Rectangle, int)

Paints the item.

protected virtual void PaintItem(Graphics g, Rectangle r, int Index)

Parameters

g Graphics

r Rectangle

Index int

PaintScroller(Graphics, Rectangle, Scrollers, bool)

Poaints the scroller.

protected void PaintScroller(Graphics g, Rectangle r, Scrollers scroller, bool IsEnabled)

Parameters

g Graphics

r Rectangle

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

Event Type

ImageIndexEventHandler