Class GroupView
Represents a control that can display a list of items.
Inheritance
System.Object
GroupView
Implements
System.IDisposable
Assembly: Syncfusion.Shared.Base.dll
public class GroupView : BaseControl, IThemeProvider, IVisualStyle, IDisposable, IIntegratedScrollClient, IGroupViewDesignerInvoke
The sample code shows how to create a GroupView control and initialize the Behavior and Appearance properties
to resemble the Visual Studio.NET toolbox window. A handler for the GroupView.GroupViewItemSelected event
is also shown.
private void InitializeGroupView()
{
// Create the GroupView control.
this.gvcWinForms = new Syncfusion.Windows.Forms.Tools.GroupView();
// Set the large and small ImageLists.
this.gvcWinForms.LargeImageList = this.ilGroupBarLarge;
this.gvcWinForms.SmallImageList = this.ilGroupBarSmall;
// Set the GroupView properties to display as a VS.NET tool box type window.
this.gvcWinForms.SmallImageView = true;
this.gvcWinForms.HighlightText = true;
this.gvcWinForms.ButtonView = true;
this.gvcWinForms.FlowView = false;
this.gvcWinForms.FlatLook = false;
this.gvcWinForms.TextWrap = false;
this.gvcWinForms.ImageSpacing = 2;
this.gvcWinForms.ItemXSpacing = 8;
this.gvcWinForms.ItemYSpacing = 1;
this.gvcWinForms.BackColor = SystemColors.Control;
this.gvcWinForms.ForeColor = SystemColors.ControlText;
this.gvcWinForms.HighlightItemColor = SystemColors.Control;
this.gvcWinForms.SelectingItemColor = ControlPaint.Light(SystemColors.ControlLight);
this.gvcWinForms.SelectedItemColor = ControlPaint.Light(SystemColors.ControlLight);
this.gvcWinForms.SelectedHighlightItemColor = SystemColors.Control;
this.gvcWinForms.SelectingTextColor = SystemColors.ControlText;
this.gvcWinForms.SelectedHighlightTextColor = SystemColors.ControlText;
// Create and add the GroupViewItem objects.
this.gvcWinForms.GroupViewItems.AddRange(
new Syncfusion.Windows.Forms.Tools.GroupViewItem[] {
new Syncfusion.Windows.Forms.Tools.GroupViewItem("Pointer", 11),
new Syncfusion.Windows.Forms.Tools.GroupViewItem("Label", 12),
new Syncfusion.Windows.Forms.Tools.GroupViewItem("LinkLabel", 13)});
// Provide a handler for the GroupView.GroupViewItemSelected event.
this.gvcWinForms.GroupViewItemSelected += new System.EventHandler(this.gvcWinForms_GroupViewItemSelected);
}
// GroupView.GroupViewItemSelected event handler.
private void gvcWinForms_GroupViewItemSelected(object sender, System.EventArgs e)
{
MessageBox.Show(String.Concat("Selected Item Index = ", this.gvcWinForms.SelectedItem.ToString()));
}
Private Sub InitializeGroupView()
' Create the GroupView control
Me.gvcWinForms = New Syncfusion.Windows.Forms.Tools.GroupView()
' Set the large and small ImageLists
Me.gvcWinForms.LargeImageList = Me.ilGroupBarLarge
Me.gvcWinForms.SmallImageList = Me.ilGroupBarSmall
' Set the GroupView properties to display as a VS.NET Toolbox type window
Me.gvcWinForms.SmallImageView = True
Me.gvcWinForms.HighlightText = True
Me.gvcWinForms.ButtonView = True
Me.gvcWinForms.FlowView = False
Me.gvcWinForms.FlatLook = False
Me.gvcWinForms.TextWrap = False
Me.gvcWinForms.ImageSpacing = 2
Me.gvcWinForms.ItemXSpacing = 8
Me.gvcWinForms.ItemYSpacing = 1
Me.gvcWinForms.BackColor = SystemColors.Control
Me.gvcWinForms.ForeColor = SystemColors.ControlText
Me.gvcWinForms.HighlightItemColor = SystemColors.Control
Me.gvcWinForms.SelectingItemColor = ControlPaint.Light(SystemColors.ControlLight)
Me.gvcWinForms.SelectedItemColor = ControlPaint.Light(SystemColors.ControlLight)
Me.gvcWinForms.SelectedHighlightItemColor = SystemColors.Control
Me.gvcWinForms.SelectingTextColor = SystemColors.ControlText
Me.gvcWinForms.SelectedHighlightTextColor = SystemColors.ControlText
' Create and add the GroupViewItem objects.
Me.gvcWinForms.GroupViewItems.AddRange(New Syncfusion.Windows.Forms.Tools.GroupViewItem() {New Syncfusion.Windows.Forms.Tools.GroupViewItem("Pointer", 11), New Syncfusion.Windows.Forms.Tools.GroupViewItem("Label", 12), New Syncfusion.Windows.Forms.Tools.GroupViewItem("LinkLabel", 13)})
' Handle the GroupView.GroupViewItemSelected event.
AddHandler Me.gvcWinForms.GroupViewItemSelected, New System.EventHandler(AddressOf gvcWinForms_GroupViewItemSelected)
End Sub
' GroupView.GroupViewItemSelected event handler.
Private Sub gvcWinForms_GroupViewItemSelected(ByVal sender As Object, ByVal e As System.EventArgs)
MessageBox.Show([String].Concat("Selected Item Index = ", Me.gvcWinForms.SelectedItem.ToString()))
End Sub 'gvcWinForms_GroupViewItemSelected
Constructors
Creates a new instance of the GroupView control.
Declaration
Fields
Declaration
protected bool bAllowDragDrop
Field Value
Declaration
protected bool bButtonView
Field Value
Declaration
protected bool bClipSelectionBounds
Field Value
Declaration
protected bool bDownScrlButton
Field Value
Declaration
protected BorderStyle bdrStyle
Field Value
| Type |
| System.Windows.Forms.BorderStyle |
Declaration
Field Value
Declaration
Field Value
Declaration
protected bool bHighlightImage
Field Value
Declaration
protected bool bHighlightItemSet
Field Value
bHighlightText
Declaration
protected bool bHighlightText
Field Value
bHighlightTextSet
Declaration
protected bool bHighlightTextSet
Field Value
Declaration
protected bool bIntegratedScrolling
Field Value
Declaration
protected Brush brBackGround
Field Value
| Type |
| System.Drawing.Brush |
Declaration
protected Brush brHighlightItem
Field Value
| Type |
| System.Drawing.Brush |
Declaration
protected Brush brSelectedHighlightItem
Field Value
| Type |
| System.Drawing.Brush |
Declaration
protected Brush brSelectedItem
Field Value
| Type |
| System.Drawing.Brush |
Declaration
protected Brush brSelectingItem
Field Value
| Type |
| System.Drawing.Brush |
Declaration
protected bool bSelectedHighlightItemSet
Field Value
bSelectedHighlightTextSet
Declaration
protected bool bSelectedHighlightTextSet
Field Value
Declaration
protected bool bSelectedItemSet
Field Value
bSelectedTextSet
Declaration
protected bool bSelectedTextSet
Field Value
Declaration
protected bool bSelectingItemSet
Field Value
bSelectingTextSet
Declaration
protected bool bSelectingTextSet
Field Value
Declaration
protected bool bSmallImageView
Field Value
bTextUnderline
Declaration
protected bool bTextUnderline
Field Value
bTextWrap
Declaration
Field Value
Declaration
protected bool bThemesEnabled
Field Value
Declaration
protected bool bUpScrlButton
Field Value
Declaration
protected GroupView.GroupViewItemCollection cllnGroupViewItems
Field Value
clrHighlightText
Declaration
protected Color clrHighlightText
Field Value
| Type |
| System.Drawing.Color |
clrSelectedHighlightText
Declaration
protected Color clrSelectedHighlightText
Field Value
| Type |
| System.Drawing.Color |
clrSelectedText
Declaration
protected Color clrSelectedText
Field Value
| Type |
| System.Drawing.Color |
clrSelectingText
Declaration
protected Color clrSelectingText
Field Value
| Type |
| System.Drawing.Color |
ctrlTextBox
Declaration
protected RenameTextBox ctrlTextBox
Field Value
Declaration
protected ToolTipForm ctrlToolTip
Field Value
Declaration
protected readonly Size defLargeImgSize
Field Value
Declaration
protected readonly Size defSmallImgSize
Field Value
Declaration
protected static DataFormats.Format dfGroupViewItem
Field Value
| Type |
| System.Windows.Forms.DataFormats.Format |
Specifies the name of the custom System.Windows.Forms.DataFormats.Format type used for GroupViewItem drag-and-drop.
Declaration
public const string GroupViewFormatName = "GroupViewItemDataFormat"
Field Value
Declaration
protected ImageList ilLarge
Field Value
| Type |
| System.Windows.Forms.ImageList |
Declaration
protected ImageList ilSmall
Field Value
| Type |
| System.Windows.Forms.ImageList |
Declaration
protected GroupViewItemAccessibleObjectsIndexer itemAccessibleObjects
Field Value
Declaration
protected int nContextMenuItem
Field Value
Declaration
Field Value
Declaration
Field Value
Declaration
protected int nHighlightedItem
Field Value
Declaration
protected int nImageSpacing
Field Value
Declaration
protected int nItemsPerRow
Field Value
Declaration
protected int nItemXSpacing
Field Value
Declaration
protected int nItemYSpacing
Field Value
Declaration
protected int nPrevSelected
Field Value
Declaration
protected int nRenameItem
Field Value
Declaration
protected const int nScrllBttnOffset = 21
Field Value
Declaration
protected int nSelectedItem
Field Value
nTextSpacing
Declaration
protected int nTextSpacing
Field Value
Declaration
Field Value
Declaration
protected static Point ptDragStart
Field Value
| Type |
| System.Drawing.Point |
Declaration
protected Point ptHighlightImageOffset
Field Value
| Type |
| System.Drawing.Point |
ptHighlightTextOffset
Declaration
protected Point ptHighlightTextOffset
Field Value
| Type |
| System.Drawing.Point |
Declaration
protected Point ptSelectedHighlightImageOffset
Field Value
| Type |
| System.Drawing.Point |
ptSelectedHighlightTextOffset
Declaration
protected Point ptSelectedHighlightTextOffset
Field Value
| Type |
| System.Drawing.Point |
Declaration
protected Point ptSelectedImageOffset
Field Value
| Type |
| System.Drawing.Point |
ptSelectedTextOffset
Declaration
protected Point ptSelectedTextOffset
Field Value
| Type |
| System.Drawing.Point |
Declaration
protected Point ptSelectingImageOffset
Field Value
| Type |
| System.Drawing.Point |
ptSelectingTextOffset
Declaration
protected Point ptSelectingTextOffset
Field Value
| Type |
| System.Drawing.Point |
Declaration
protected Rectangle rcHighlightedItem
Field Value
| Type |
| System.Drawing.Rectangle |
Declaration
protected Rectangle rcPrevSelected
Field Value
| Type |
| System.Drawing.Rectangle |
Declaration
protected Rectangle rcSelectedItem
Field Value
| Type |
| System.Drawing.Rectangle |
Declaration
protected GroupView.ScrollButtonState scrllBtnState
Field Value
Declaration
protected ThemedControlDrawing tdScrollBar
Field Value
Declaration
protected ThemedControlDrawing tdToolbar
Field Value
Declaration
protected Timer tmrScrolling
Field Value
| Type |
| System.Windows.Forms.Timer |
Properties
Gets or sets allow drag any object. For use this property AllowDragDrop must be true.
Declaration
public bool AllowDragAnyObject { get; set; }
Property Value
Indicates whether the control supports drag-and-drop of GroupViewItem objects.
Declaration
public bool AllowDragDrop { get; set; }
Property Value
Gets a value indicating whether the control supports drop.
Declaration
public override bool AllowDrop { get; set; }
Property Value
Gets or sets the brush used for drawing the GroupView control background.
Declaration
public Brush BackGroundBrush { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Brush |
A System.Drawing.Brush value.
|
Gets/Sets Control size before touch enabled
Declaration
public Size BeforeTouchSize { get; set; }
Property Value
Gets or sets the border style of the GroupView control.
Declaration
public BorderStyle BorderStyle { get; set; }
Property Value
| Type |
Description |
| System.Windows.Forms.BorderStyle |
A System.Windows.Forms.BorderStyle value. The default is BorderStyle.Fixed3D.
|
Indicates whether items are drawn with a button-type flat look upon selection.
Declaration
public bool ButtonView { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
True if the button-type selection is set. The default is False.
|
Indicates whether the selection bounds of a GroupViewItem are clipped around its image and text.
Declaration
public bool ClipSelectionBounds { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
A Boolean value. The default is False.
|
Declaration
public int ContextMenuItem { get; }
Property Value
| Type |
Description |
| System.Int32 |
The zero-based index of the item.
|
Declaration
protected override CreateParams CreateParams { get; }
Property Value
| Type |
| System.Windows.Forms.CreateParams |
Declaration
protected virtual Rectangle DownScrlBtnRect { get; }
Property Value
| Type |
| System.Drawing.Rectangle |
Gets or Sets the touchmode
Declaration
public bool EnableTouchMode { get; set; }
Property Value
Indicates whether the GroupView control is displayed with a flat look.
Declaration
public bool FlatLook { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
True to display in flat mode. The default is False.
|
Indicates whether the flow view display mode is set.
Declaration
public bool FlowView { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
True if flow view is set. The default is False.
|
FlowViewItemTextLength
Declaration
public int FlowViewItemTextLength { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
An integer value.
|
Gets or sets the System.Drawing.Font value of the GroupView control.
Declaration
public override Font Font { get; set; }
Property Value
Gets / sets the collection of GroupViewItem objects in the control.
Declaration
public GroupView.GroupViewItemCollection GroupViewItems { get; set; }
Property Value
Declaration
protected GroupViewItemAccessibleObjectsIndexer gviAccessibleObjects { get; }
Property Value
Returns the GroupViewItem over which the mouse cursor is hovering.
Declaration
public int HighlightedItem { get; }
Property Value
| Type |
Description |
| System.Int32 |
The zero-based index of the item under the cursor. -1 if no item is being highlighted.
|
Gets / sets a value indicating whether the GroupViewItem image is highlighted when the mouse is moved over it.
Declaration
public bool HighlightImage { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
False if image highlighting is disabled. The default is True.
|
Gets or sets the distance by which the GroupViewItem image is offset when the mouse is moved over it.
Declaration
public Point HighlightImageOffset { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Point |
A System.Drawing.Point value.
|
Gets or sets the brush used for drawing the background of the highlighted GroupViewItem.
Declaration
public Brush HighlightItemBrush { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Brush |
A System.Drawing.Brush value.
|
Gets or sets the color used for drawing the background of a GroupViewItem when the mouse is moved over it.
Declaration
public Color HighlightItemColor { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Color |
A System.Drawing.Color value.
|
HighlightText
Indicates whether the GroupViewItem text is highlighted when the mouse is moved over it.
Declaration
public bool HighlightText { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
False if text highlighting is disabled. The default is True.
|
HighlightTextColor
Gets or sets the color used for drawing the GroupViewItem text when the mouse is moved over it.
Declaration
public Color HighlightTextColor { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Color |
A System.Drawing.Color value.
|
HighlightTextOffset
Gets or sets the distance by which the GroupViewItem text is offset when the mouse is moved over it.
Declaration
public Point HighlightTextOffset { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Point |
A System.Drawing.Point value.
|
Gets or sets the height between the highlighted edge of a GroupViewItem and the image.
Declaration
public int ImageSpacing { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
An integer value.
|
Indicates whether scrolling should be delegated to the GroupView control's parent.
Declaration
public bool IntegratedScrolling { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
True to enable integrated scrolling. The default is False.
|
Gets / sets the horizontal distance between a GroupViewItem and the control's left border.
Declaration
public int ItemXSpacing { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
An integer value.
|
Declaration
public int ItemYSpacing { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
An integer value.
|
Gets / sets the image list containing the large (32x32) images.
Declaration
public ImageList LargeImageList { get; set; }
Property Value
| Type |
Description |
| System.Windows.Forms.ImageList |
An ImageList type.
|
Gets / sets the color used for drawing the Metro style border GroupViewItem
Declaration
public Color MetroBorderColor { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Color |
A System.Drawing.Color value.
|
Gets or sets the office2016 colorscheme
Declaration
public GroupViewOffice2016ColorScheme Office2016ColorScheme { get; set; }
Property Value
Gets or sets GroupViev orientation.
Declaration
public GroupViewOrientation Orientation { get; set; }
Property Value
Gets / sets the distance by which the selected GroupViewItem image is offset when the mouse is moved over it.
Declaration
public Point SelectedHighlightImageOffset { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Point |
A System.Drawing.Point value.
|
Gets / sets the color used for drawing the background of the selected GroupViewItem when the mouse is moved over it.
Declaration
public Color SelectedHighlightItemColor { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Color |
A System.Drawing.Color value.
|
SelectedHighlightTextColor
Gets / sets the color used for drawing the selected GroupViewItem text when the mouse is moved over it.
Declaration
public Color SelectedHighlightTextColor { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Color |
A System.Drawing.Color value.
|
SelectedHighlightTextOffset
Gets / sets the distance by which the selected GroupViewItem text is offset when the mouse is moved over it.
Declaration
public Point SelectedHighlightTextOffset { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Point |
A System.Drawing.Point value.
|
Gets / sets the distance by which the GroupViewItem image is offset when it is selected.
Declaration
public Point SelectedImageOffset { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Point |
A System.Drawing.Point value.
|
Declaration
public int SelectedItem { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
The zero-based index of the selected item. -1 if a selected item is not available.
|
Gets or sets the brush used for drawing the background of the selected GroupViewItem.
Declaration
public Brush SelectedItemBrush { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Brush |
A System.Drawing.Brush value.
|
Gets / sets the color used for drawing the background of the selected GroupViewItem.
Declaration
public Color SelectedItemColor { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Color |
A System.Drawing.Color value.
|
Gets or sets the brush used for drawing the background of the selected GroupViewItem
when the mouse is moved over it.
Declaration
public Brush SelectedItemHighlightBrush { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Brush |
A System.Drawing.Brush value.
|
SelectedTextColor
Gets / sets the color used for drawing the selected GroupViewItem text.
Declaration
public Color SelectedTextColor { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Color |
A System.Drawing.Color value.
|
SelectedTextOffset
Gets / sets the distance by which the GroupViewItem text is offset when it is selected.
Declaration
public Point SelectedTextOffset { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Point |
A System.Drawing.Point value.
|
Gets / sets the distance by which the GroupViewItem image is offset when it is being selected.
Declaration
public Point SelectingImageOffset { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Point |
A System.Drawing.Point value.
|
Gets or sets the brush used for drawing the background of the GroupViewItem being selected.
Declaration
public Brush SelectingItemBrush { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Brush |
A System.Drawing.Brush value.
|
Gets / sets the color used for drawing the background of the GroupViewItem being selected.
Declaration
public Color SelectingItemColor { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Color |
A System.Drawing.Color value.
|
SelectingTextColor
Gets / sets the color used for drawing the GroupViewItem text while it is being selected.
Declaration
public Color SelectingTextColor { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Color |
A System.Drawing.Color value.
|
SelectingTextOffset
Gets / sets the distance by which the GroupViewItem text is offset when it is being selected.
Declaration
public Point SelectingTextOffset { get; set; }
Property Value
| Type |
Description |
| System.Drawing.Point |
A System.Drawing.Point value.
|
ShowFlowViewItemText
Indicates whether control should show GroupViewItem text in FlowView mode.
Declaration
public bool ShowFlowViewItemText { get; set; }
Property Value
Gets or sets whether tooltips for GroupViewItems should be shown or not.
Use property to get\set ToolTip text.
Declaration
public bool ShowToolTips { get; set; }
Property Value
Gets / sets the image list containing the small (16x16) images.
Declaration
public ImageList SmallImageList { get; set; }
Property Value
| Type |
Description |
| System.Windows.Forms.ImageList |
An ImageList type.
|
Indicates whether the control displays items using the images in the SmallImageList.
Declaration
public bool SmallImageView { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
True if the small image mode is set. The default is False.
|
Declaration
public Appearance Style { get; set; }
Property Value
TextSpacing
Gets / sets the distance between the GroupViewItem image and the text.
Declaration
public int TextSpacing { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
An integer value.
|
TextUnderline
Indicates whether the GroupViewItem text is underlined when the mouse is moved over it.
Declaration
public bool TextUnderline { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
True if text underlining is enabled. The default is False.
|
TextWrap
Declaration
public bool TextWrap { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
True to turn on wrapping. The default is False.
|
Indicates whether XP Themes (visual styles) should be used for drawing the control.
Declaration
public bool ThemesEnabled { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
True to turn on themes; the default is False.
|
Declaration
public GroupViewVisualStyle ThemeStyle { get; set; }
Property Value
Declaration
public int TimerScrollInterval { get; set; }
Property Value
Declaration
protected virtual Rectangle UpScrlBtnRect { get; }
Property Value
| Type |
| System.Drawing.Rectangle |
Methods
Declaration
public void ApplyScaleToControl(float scaleFactor)
Parameters
| Type |
Name |
Description |
| System.Single |
scaleFactor |
|
Declaration
public void BringItemIntoView(int nindex)
Parameters
| Type |
Name |
Description |
| System.Int32 |
nindex |
The zero-based index of the item.
|
CalculateItemsPerPage()
Declaration
protected int CalculateItemsPerPage()
Returns
Declaration
protected void CalculateItemsPerRow()
Cancels an inplace renaming that is in progress.
Declaration
public void CancelInplaceRenameItem()
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
| Type |
| System.Windows.Forms.AccessibleObject |
Declaration
protected GroupViewItemAccessibleObject CreateGroupViewItemAccessibilityInstance(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
Returns
Overridden. See System.Windows.Forms.Control.Dispose(System.Boolean).
Declaration
protected override void Dispose(bool bdispose)
Parameters
| Type |
Name |
Description |
| System.Boolean |
bdispose |
|
Declaration
protected virtual void DoScroll(bool bscrllup, bool bsettimer)
Parameters
| Type |
Name |
Description |
| System.Boolean |
bscrllup |
|
| System.Boolean |
bsettimer |
|
Declaration
protected virtual void DrawAllItems(Graphics gph)
Parameters
| Type |
Name |
Description |
| System.Drawing.Graphics |
gph |
|
Declaration
protected virtual void DrawDragDropFlowInsert(int posX, int posY, GroupView.DragDropInsert insert, bool berase)
Parameters
Declaration
protected virtual void DrawDragDropNonFlowInsert(int inspos, GroupView.DragDropInsert insert, bool berase)
Parameters
Declaration
protected virtual void DrawFlowScrollButtons(Graphics gph)
Parameters
| Type |
Name |
Description |
| System.Drawing.Graphics |
gph |
|
Declaration
protected virtual void DrawItem(Graphics gph, int nindex, Rectangle rc, GroupView.ItemState state)
Parameters
| Type |
Name |
Description |
| System.Drawing.Graphics |
gph |
|
| System.Int32 |
nindex |
|
| System.Drawing.Rectangle |
rc |
|
| GroupView.ItemState |
state |
|
Draws the highlighting of GroupViewitem.
Declaration
protected virtual void DrawItemHighlight(Graphics gph, int nindex, Rectangle rcitem, GroupView.ItemState state)
Parameters
| Type |
Name |
Description |
| System.Drawing.Graphics |
gph |
A System.Drawing.Graphics object.
|
| System.Int32 |
nindex |
The index of the groupViewItem.
|
| System.Drawing.Rectangle |
rcitem |
A System.Drawing.Rectangle value specifying the GroupViewItem bounds.
|
| GroupView.ItemState |
state |
The state of the item.
|
Declaration
protected virtual void DrawNonFlowScrollButtons(Graphics gfxDC)
Parameters
| Type |
Name |
Description |
| System.Drawing.Graphics |
gfxDC |
|
DrawText(Graphics, Int32, Rectangle, GroupView.ItemState)
Declaration
protected virtual void DrawText(Graphics gph, int nindex, Rectangle rc, GroupView.ItemState state)
Parameters
| Type |
Name |
Description |
| System.Drawing.Graphics |
gph |
|
| System.Int32 |
nindex |
|
| System.Drawing.Rectangle |
rc |
|
| GroupView.ItemState |
state |
|
Declaration
protected void FireGroupViewItemSelectedEvent(int nindex)
Parameters
| Type |
Name |
Description |
| System.Int32 |
nindex |
|
Declaration
protected Rectangle GetAdjustedHighlightBounds(int nindex, Rectangle rchighlight)
Parameters
| Type |
Name |
Description |
| System.Int32 |
nindex |
|
| System.Drawing.Rectangle |
rchighlight |
|
Returns
| Type |
| System.Drawing.Rectangle |
GetAdjustedTextBounds(Int32, Rectangle)
Declaration
protected virtual Rectangle GetAdjustedTextBounds(int nindex, Rectangle rcItem)
Parameters
| Type |
Name |
Description |
| System.Int32 |
nindex |
|
| System.Drawing.Rectangle |
rcItem |
|
Returns
| Type |
| System.Drawing.Rectangle |
Helps to apply the ControlName settings for GroupView.
Declaration
public override string GetControlName(string controlName)
Parameters
| Type |
Name |
Description |
| System.String |
controlName |
|
Returns
Overrides
Declaration
protected Rectangle GetGroupViewItemBounds(int nindex, string type)
Parameters
| Type |
Name |
Description |
| System.Int32 |
nindex |
|
| System.String |
type |
|
Returns
| Type |
| System.Drawing.Rectangle |
Declaration
protected bool GetIsMirrored()
Returns
Declaration
public GroupViewItem GetItemAt(Point pt)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
pt |
Represent mouse pointer
|
Returns
Declaration
public int GetItemUnderPoint(Point pt)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
pt |
|
Returns
Declaration
protected void GroupView_RenameComplete(object sender, RenameCompleteEventArgs arg)
Parameters
GroupView_TextChanged(Object, EventArgs)
Declaration
protected void GroupView_TextChanged(object sender, EventArgs e)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
| System.EventArgs |
e |
|
Declaration
protected virtual void HandleMouseDown(MouseButtons button, Point pt)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseButtons |
button |
|
| System.Drawing.Point |
pt |
|
Declaration
protected virtual void HandleMouseUp(MouseButtons button, Point pt)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseButtons |
button |
|
| System.Drawing.Point |
pt |
|
Declaration
public virtual void InplaceRenameItem(int nindex)
Parameters
| Type |
Name |
Description |
| System.Int32 |
nindex |
The zero-based index of the item to be renamed.
|
Declaration
protected bool IsMouseOverItem(int nindex, Rectangle rchighlight, Point ptmouse)
Parameters
| Type |
Name |
Description |
| System.Int32 |
nindex |
|
| System.Drawing.Rectangle |
rchighlight |
|
| System.Drawing.Point |
ptmouse |
|
Returns
Declaration
protected virtual void Layout()
MeasureText(Int32, Rectangle)
Declaration
protected SizeF MeasureText(int nindex, Rectangle rc)
Parameters
| Type |
Name |
Description |
| System.Int32 |
nindex |
|
| System.Drawing.Rectangle |
rc |
|
Returns
| Type |
| System.Drawing.SizeF |
Overridden. See System.Windows.Forms.Control.OnBackColorChanged(System.EventArgs).
Declaration
protected override void OnBackColorChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Declaration
protected override void OnClick(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Overridden. See System.Windows.Forms.Control.OnDragDrop(System.Windows.Forms.DragEventArgs).
Declaration
protected override void OnDragDrop(DragEventArgs drgevent)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.DragEventArgs |
drgevent |
|
Overridden. See System.Windows.Forms.Control.OnDragEnter(System.Windows.Forms.DragEventArgs).
Declaration
protected override void OnDragEnter(DragEventArgs drgevent)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.DragEventArgs |
drgevent |
|
Overridden. See System.Windows.Forms.Control.OnDragLeave(System.EventArgs).
Declaration
protected override void OnDragLeave(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Overridden. See System.Windows.Forms.Control.OnDragOver(System.Windows.Forms.DragEventArgs).
Declaration
protected override void OnDragOver(DragEventArgs drgevent)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.DragEventArgs |
drgevent |
|
Declaration
protected override void OnFontChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Overridden. See System.Windows.Forms.Control.OnForeColorChanged(System.EventArgs).
Declaration
protected override void OnForeColorChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Raises the GroupView Item double click event.
Declaration
protected virtual void OnGroupViewItemDoubleClick(GroupViewItemDoubleClickEventArgs arg)
Parameters
Declaration
protected virtual void OnGroupViewItemHighlighted(EventArgs arg)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
arg |
A System.EventArgs value that contains the event data.
|
Declaration
protected virtual void OnGroupViewItemRenamed(GroupItemRenamedEventArgs arg)
Parameters
Declaration
protected virtual void OnGroupViewItemSelected(EventArgs arg)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
arg |
A System.EventArgs value that contains the event data.
|
Declaration
protected virtual void OnGroupViewItemsReordered(EventArgs arg)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
arg |
A System.EventArgs value that contains the event data.
|
Declaration
protected override void OnLostFocus(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Overridden. See System.Windows.Forms.Control.OnMouseDown(System.Windows.Forms.MouseEventArgs).
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseEventArgs |
e |
|
Called by the tab control when mouse hovers on the control.
Declaration
protected override void OnMouseHover(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
The System.EventArgs instance containing the event data.
|
Overridden. See System.Windows.Forms.Control.OnMouseLeave(System.EventArgs).
Declaration
protected override void OnMouseLeave(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Overridden. See System.Windows.Forms.Control.OnMouseMove(System.Windows.Forms.MouseEventArgs).
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseEventArgs |
e |
|
Overridden. See System.Windows.Forms.Control.OnMouseUp(System.Windows.Forms.MouseEventArgs).
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseEventArgs |
e |
|
Overridden. See System.Windows.Forms.Control.OnPaint(System.Windows.Forms.PaintEventArgs).
Declaration
protected override void OnPaint(PaintEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.PaintEventArgs |
e |
|
Overridden. See System.Windows.Forms.Control.OnPaintBackground(System.Windows.Forms.PaintEventArgs).
Declaration
protected override void OnPaintBackground(PaintEventArgs e)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.PaintEventArgs |
e |
|
Declaration
protected virtual void OnShowContextMenu(EventArgs arg)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
arg |
A System.EventArgs value that contains the event data.
|
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Helps to apply the ThemeName settings for the GroupView.
Declaration
public override void OnThemeNameChanged(string themeName)
Parameters
| Type |
Name |
Description |
| System.String |
themeName |
ThemeName
|
Overrides
Overridden. See System.Windows.Forms.Control.OnVisibleChanged(System.EventArgs).
Declaration
protected override void OnVisibleChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
|
Returns GroupViewItem at the specified point in client coordinates.
Declaration
public GroupViewItem PointToItem(Point pt)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
pt |
Point where the GroupViewItem is located.
|
Returns
| Type |
Description |
| GroupViewItem |
GroupViewItem, whose area contains specified point; Null, if nothing is found.
|
Overloaded. Returns the GroupViewItem at the specified point in client coordinates.
Declaration
public GroupViewItem PointToItem(int x, int y)
Parameters
| Type |
Name |
Description |
| System.Int32 |
x |
X - coordinate of the item.
|
| System.Int32 |
y |
Y- coordinate of the item.
|
Returns
| Type |
Description |
| GroupViewItem |
GroupViewItem, whose area contains specified point; null, if nothing is found.
|
Declaration
protected override bool ProcessCmdKey(ref Message msg, Keys keydata)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Message |
msg |
|
| System.Windows.Forms.Keys |
keydata |
|
Returns
Declaration
protected virtual void ProcessDragDrop(MouseActions action, Point pt)
Parameters
| Type |
Name |
Description |
| MouseActions |
action |
|
| System.Drawing.Point |
pt |
|
Declaration
protected virtual int ProcessMouseOver(Point pt)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
pt |
|
Returns
Declaration
protected void PropChangedHandler(object obj, PropertyChangedEventArgs args)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
| System.ComponentModel.PropertyChangedEventArgs |
args |
|
Declaration
public void ResetHighlightImageOffset()
Declaration
public void ResetHighlightItemColor()
ResetHighlightTextColor()
Declaration
public void ResetHighlightTextColor()
ResetHighlightTextOffset()
Declaration
public void ResetHighlightTextOffset()
Declaration
public void ResetMetroBorderColor()
Declaration
public void ResetSelectedHighlightImageOffset()
Declaration
public void ResetSelectedHighlightItemColor()
ResetSelectedHighlightTextColor()
Declaration
public void ResetSelectedHighlightTextColor()
ResetSelectedHighlightTextOffset()
Declaration
public void ResetSelectedHighlightTextOffset()
Declaration
public void ResetSelectedImageOffset()
Declaration
public void ResetSelectedItemColor()
ResetSelectedTextColor()
Declaration
public void ResetSelectedTextColor()
ResetSelectedTextOffset()
Declaration
public void ResetSelectedTextOffset()
Declaration
public void ResetSelectingImageOffset()
Declaration
public void ResetSelectingItemColor()
ResetSelectingTextColor()
Declaration
public void ResetSelectingTextColor()
ResetSelectingTextOffset()
Declaration
public void ResetSelectingTextOffset()
Declaration
protected virtual void ScrollButtonsMouseHandler(MouseActions action, Point pt)
Parameters
| Type |
Name |
Description |
| MouseActions |
action |
|
| System.Drawing.Point |
pt |
|
Declaration
protected void ScrollTimerEventHandler(object obj, EventArgs args)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
| System.EventArgs |
args |
|
Overridden. See System.Windows.Forms.Control.SetBoundsCore(System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Forms.BoundsSpecified).
Declaration
protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
Parameters
| Type |
Name |
Description |
| System.Int32 |
x |
|
| System.Int32 |
y |
|
| System.Int32 |
width |
|
| System.Int32 |
height |
|
| System.Windows.Forms.BoundsSpecified |
specified |
|
Declaration
protected virtual void SetFlowItemBounds(int nindex, ref Rectangle rchighlight)
Parameters
| Type |
Name |
Description |
| System.Int32 |
nindex |
|
| System.Drawing.Rectangle |
rchighlight |
|
Declaration
protected virtual void SetNonFlowItemBounds(int nindex, ref Rectangle rchilight)
Parameters
| Type |
Name |
Description |
| System.Int32 |
nindex |
|
| System.Drawing.Rectangle |
rchilight |
|
Declaration
protected bool ShouldSerializeHighlightImageOffset()
Returns
Declaration
protected bool ShouldSerializeHighlightItemColor()
Returns
ShouldSerializeHighlightTextColor()
Declaration
protected bool ShouldSerializeHighlightTextColor()
Returns
ShouldSerializeHighlightTextOffset()
Declaration
protected bool ShouldSerializeHighlightTextOffset()
Returns
Declaration
protected bool ShouldSerializeMetroBorderColor()
Returns
Declaration
protected bool ShouldSerializeSelectedHighlightImageOffset()
Returns
Declaration
protected bool ShouldSerializeSelectedHighlightItemColor()
Returns
ShouldSerializeSelectedHighlightTextColor()
Declaration
protected bool ShouldSerializeSelectedHighlightTextColor()
Returns
ShouldSerializeSelectedHighlightTextOffset()
Declaration
protected bool ShouldSerializeSelectedHighlightTextOffset()
Returns
Declaration
protected bool ShouldSerializeSelectedImageOffset()
Returns
Declaration
protected bool ShouldSerializeSelectedItemColor()
Returns
ShouldSerializeSelectedTextColor()
Declaration
protected bool ShouldSerializeSelectedTextColor()
Returns
ShouldSerializeSelectedTextOffset()
Declaration
protected bool ShouldSerializeSelectedTextOffset()
Returns
Declaration
protected bool ShouldSerializeSelectingImageOffset()
Returns
Declaration
protected bool ShouldSerializeSelectingItemColor()
Returns
ShouldSerializeSelectingTextColor()
Declaration
protected bool ShouldSerializeSelectingTextColor()
Returns
ShouldSerializeSelectingTextOffset()
Declaration
protected bool ShouldSerializeSelectingTextOffset()
Returns
Declaration
protected void ShowToolTip(string text)
Parameters
| Type |
Name |
Description |
| System.String |
text |
A string value representing ToolTip's text
|
Declaration
protected void StartShowingToolTip(int interval)
Parameters
| Type |
Name |
Description |
| System.Int32 |
interval |
Representint interval before showing ToolTip
|
Declaration
protected void StopShowingToolTip()
Declaration
protected override void WndProc(ref Message m)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Message |
m |
|
Events
Occurs when a GroupViewItem is double clicked.
Declaration
public event GroupViewItemDoubleClickEventHandler GroupViewItemDoubleClick
Event Type
Declaration
public event EventHandler GroupViewItemHighlighted
Event Type
Occurs after a GroupViewItem has been renamed by an in-place edit operation.
Declaration
public event GroupItemRenamedEventHandler GroupViewItemRenamed
Event Type
Declaration
public event EventHandler GroupViewItemSelected
Event Type
Occurs after the items in a GroupView control have been reordered by a
drag-and-drop operation.
Declaration
public event EventHandler GroupViewItemsReordered
Event Type
Occurs when the right mouse button is clicked over the GroupView control.
Declaration
public event EventHandler ShowContextMenu
Event Type
Explicit Interface Implementations
Declaration
void IGroupViewDesignerInvoke.HandleMouseDown(MouseButtons button, Point pt)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseButtons |
button |
|
| System.Drawing.Point |
pt |
|
Declaration
void IGroupViewDesignerInvoke.HandleMouseUp(MouseButtons button, Point pt)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.MouseButtons |
button |
|
| System.Drawing.Point |
pt |
|
Declaration
void IIntegratedScrollClient.DownScrollButtonPressed()
Declaration
bool IIntegratedScrollClient.IsDownScrollButtonEnabled()
Returns
Declaration
bool IIntegratedScrollClient.IsUpScrollButtonEnabled()
Returns
Declaration
void IIntegratedScrollClient.UpScrollButtonPressed()
Implements
System.IDisposable
See Also