Aether Utilities Aether Utilities
Aether Utilities Aether Utilities
DocFX + Singulink = ♥

Search Results for

    Edit this page

    Class AuPropertyGrid

    Namespace
    AetherUtils.Core.WinForms.Controls
    Assembly
    AetherUtils.Core.dll
    Represents a custom PropertyGrid control with support for additional buttons on the ToolStrip of the property grid. Each button can be added using the AddButton(string, ToolStripButton) method. When all buttons are added, DrawButtons() can be called to add them to the control.
    [UsedImplicitly]
    public class AuPropertyGrid : PropertyGrid, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, IComPropertyBrowser
    Inheritance
    object
    MarshalByRefObject
    Component
    Control
    ScrollableControl
    ContainerControl
    PropertyGrid
    AuPropertyGrid
    Implements
    IDropTarget
    ISynchronizeInvoke
    IWin32Window
    IBindableComponent
    IComponent
    IDisposable
    IContainerControl
    IComPropertyBrowser
    Inherited Members
    PropertyGrid.CollapseAllGridItems()
    PropertyGrid.CreateAccessibilityInstance()
    PropertyGrid.CreatePropertyTab(Type)
    PropertyGrid.ExpandAllGridItems()
    PropertyGrid.OnEnabledChanged(EventArgs)
    PropertyGrid.OnFontChanged(EventArgs)
    PropertyGrid.OnHandleCreated(EventArgs)
    PropertyGrid.OnHandleDestroyed(EventArgs)
    PropertyGrid.OnGotFocus(EventArgs)
    PropertyGrid.OnMouseDown(MouseEventArgs)
    PropertyGrid.OnMouseMove(MouseEventArgs)
    PropertyGrid.OnMouseUp(MouseEventArgs)
    PropertyGrid.OnResize(EventArgs)
    PropertyGrid.OnComComponentNameChanged(ComponentRenameEventArgs)
    PropertyGrid.OnNotifyPropertyValueUIItemsChanged(object, EventArgs)
    PropertyGrid.OnPaint(PaintEventArgs)
    PropertyGrid.OnPropertySortChanged(EventArgs)
    PropertyGrid.OnPropertyTabChanged(PropertyTabChangedEventArgs)
    PropertyGrid.OnPropertyValueChanged(PropertyValueChangedEventArgs)
    PropertyGrid.OnSelectedGridItemChanged(SelectedGridItemChangedEventArgs)
    PropertyGrid.OnSelectedObjectsChanged(EventArgs)
    PropertyGrid.OnVisibleChanged(EventArgs)
    PropertyGrid.ProcessDialogKey(Keys)
    PropertyGrid.Refresh()
    PropertyGrid.RefreshTabs(PropertyTabScope)
    PropertyGrid.ResetSelectedProperty()
    PropertyGrid.ShowEventsButton(bool)
    PropertyGrid.OnSystemColorsChanged(EventArgs)
    PropertyGrid.WndProc(ref Message)
    PropertyGrid.BackColor
    PropertyGrid.BrowsableAttributes
    PropertyGrid.CanShowCommands
    PropertyGrid.CategoryForeColor
    PropertyGrid.CommandsBackColor
    PropertyGrid.CommandsForeColor
    PropertyGrid.CommandsLinkColor
    PropertyGrid.CommandsActiveLinkColor
    PropertyGrid.CommandsDisabledLinkColor
    PropertyGrid.CommandsBorderColor
    PropertyGrid.CommandsVisible
    PropertyGrid.CommandsVisibleIfAvailable
    PropertyGrid.ContextMenuDefaultLocation
    PropertyGrid.DefaultSize
    PropertyGrid.DefaultTabType
    PropertyGrid.DrawFlatToolbar
    PropertyGrid.HelpBackColor
    PropertyGrid.HelpForeColor
    PropertyGrid.HelpBorderColor
    PropertyGrid.HelpVisible
    PropertyGrid.SelectedItemWithFocusBackColor
    PropertyGrid.SelectedItemWithFocusForeColor
    PropertyGrid.DisabledItemForeColor
    PropertyGrid.CategorySplitterColor
    PropertyGrid.CanShowVisualStyleGlyphs
    PropertyGrid.LineColor
    PropertyGrid.PropertySort
    PropertyGrid.PropertyTabs
    PropertyGrid.SelectedObject
    PropertyGrid.SelectedObjects
    PropertyGrid.SelectedTab
    PropertyGrid.SelectedGridItem
    PropertyGrid.ShowFocusCues
    PropertyGrid.Site
    PropertyGrid.Text
    PropertyGrid.LargeButtons
    PropertyGrid.ToolbarVisible
    PropertyGrid.ToolStripRenderer
    PropertyGrid.ViewBackColor
    PropertyGrid.ViewForeColor
    PropertyGrid.ViewBorderColor
    PropertyGrid.SortByPropertyImage
    PropertyGrid.SortByCategoryImage
    PropertyGrid.ShowPropertyPageImage
    PropertyGrid.UseCompatibleTextRendering
    PropertyGrid.TextChanged
    PropertyGrid.KeyDown
    PropertyGrid.KeyPress
    PropertyGrid.KeyUp
    PropertyGrid.MouseDown
    PropertyGrid.MouseUp
    PropertyGrid.MouseMove
    PropertyGrid.MouseEnter
    PropertyGrid.MouseLeave
    PropertyGrid.PropertyValueChanged
    PropertyGrid.PropertyTabChanged
    PropertyGrid.PropertySortChanged
    PropertyGrid.SelectedGridItemChanged
    PropertyGrid.SelectedObjectsChanged
    ContainerControl.AdjustFormScrollbars(bool)
    ContainerControl.OnAutoValidateChanged(EventArgs)
    ContainerControl.OnCreateControl()
    ContainerControl.OnLayout(LayoutEventArgs)
    ContainerControl.OnMove(EventArgs)
    ContainerControl.OnParentChanged(EventArgs)
    ContainerControl.PerformAutoScale()
    ContainerControl.ScaleMinMaxSize(float, float, bool)
    ContainerControl.ProcessDialogChar(char)
    ContainerControl.ProcessCmdKey(ref Message, Keys)
    ContainerControl.ProcessMnemonic(char)
    ContainerControl.ProcessTabKey(bool)
    ContainerControl.RescaleConstantsForDpi(int, int)
    ContainerControl.Select(bool, bool)
    ContainerControl.UpdateDefaultButton()
    ContainerControl.Validate()
    ContainerControl.Validate(bool)
    ContainerControl.AutoScaleDimensions
    ContainerControl.AutoScaleFactor
    ContainerControl.AutoScaleMode
    ContainerControl.BindingContext
    ContainerControl.CanEnableIme
    ContainerControl.ActiveControl
    ContainerControl.CreateParams
    ContainerControl.CurrentAutoScaleDimensions
    ContainerControl.ParentForm
    ScrollableControl.ScrollStateAutoScrolling
    ScrollableControl.ScrollStateHScrollVisible
    ScrollableControl.ScrollStateVScrollVisible
    ScrollableControl.ScrollStateUserHasScrolled
    ScrollableControl.ScrollStateFullDrag
    ScrollableControl.GetScrollState(int)
    ScrollableControl.OnMouseWheel(MouseEventArgs)
    ScrollableControl.OnRightToLeftChanged(EventArgs)
    ScrollableControl.OnPaintBackground(PaintEventArgs)
    ScrollableControl.OnPaddingChanged(EventArgs)
    ScrollableControl.ScaleControl(SizeF, BoundsSpecified)
    ScrollableControl.SetDisplayRectLocation(int, int)
    ScrollableControl.ScrollControlIntoView(Control)
    ScrollableControl.ScrollToControl(Control)
    ScrollableControl.OnScroll(ScrollEventArgs)
    ScrollableControl.SetAutoScrollMargin(int, int)
    ScrollableControl.SetScrollState(int, bool)
    ScrollableControl.AutoScroll
    ScrollableControl.AutoScrollMargin
    ScrollableControl.AutoScrollPosition
    ScrollableControl.AutoScrollMinSize
    ScrollableControl.DisplayRectangle
    ScrollableControl.HScroll
    ScrollableControl.HorizontalScroll
    ScrollableControl.VScroll
    ScrollableControl.VerticalScroll
    ScrollableControl.Scroll
    Control.GetAccessibilityObjectById(int)
    Control.SetAutoSizeMode(AutoSizeMode)
    Control.GetAutoSizeMode()
    Control.GetPreferredSize(Size)
    Control.AccessibilityNotifyClients(AccessibleEvents, int)
    Control.AccessibilityNotifyClients(AccessibleEvents, int, int)
    Control.BeginInvoke(Delegate)
    Control.BeginInvoke(Action)
    Control.BeginInvoke(Delegate, params object[])
    Control.BringToFront()
    Control.Contains(Control)
    Control.CreateControlsInstance()
    Control.CreateGraphics()
    Control.CreateHandle()
    Control.CreateControl()
    Control.DefWndProc(ref Message)
    Control.DestroyHandle()
    Control.DoDragDrop(object, DragDropEffects)
    Control.DoDragDrop(object, DragDropEffects, Bitmap, Point, bool)
    Control.DrawToBitmap(Bitmap, Rectangle)
    Control.EndInvoke(IAsyncResult)
    Control.FindForm()
    Control.GetTopLevel()
    Control.RaiseKeyEvent(object, KeyEventArgs)
    Control.RaiseMouseEvent(object, MouseEventArgs)
    Control.Focus()
    Control.FromChildHandle(nint)
    Control.FromHandle(nint)
    Control.GetChildAtPoint(Point, GetChildAtPointSkip)
    Control.GetChildAtPoint(Point)
    Control.GetContainerControl()
    Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)
    Control.GetNextControl(Control, bool)
    Control.GetStyle(ControlStyles)
    Control.Hide()
    Control.InitLayout()
    Control.Invalidate(Region)
    Control.Invalidate(Region, bool)
    Control.Invalidate()
    Control.Invalidate(bool)
    Control.Invalidate(Rectangle)
    Control.Invalidate(Rectangle, bool)
    Control.Invoke(Action)
    Control.Invoke(Delegate)
    Control.Invoke(Delegate, params object[])
    Control.Invoke<T>(Func<T>)
    Control.InvokePaint(Control, PaintEventArgs)
    Control.InvokePaintBackground(Control, PaintEventArgs)
    Control.IsKeyLocked(Keys)
    Control.IsInputChar(char)
    Control.IsInputKey(Keys)
    Control.IsMnemonic(char, string)
    Control.LogicalToDeviceUnits(int)
    Control.LogicalToDeviceUnits(Size)
    Control.ScaleBitmapLogicalToDevice(ref Bitmap)
    Control.NotifyInvalidate(Rectangle)
    Control.InvokeOnClick(Control, EventArgs)
    Control.OnAutoSizeChanged(EventArgs)
    Control.OnBackColorChanged(EventArgs)
    Control.OnBackgroundImageChanged(EventArgs)
    Control.OnBackgroundImageLayoutChanged(EventArgs)
    Control.OnBindingContextChanged(EventArgs)
    Control.OnCausesValidationChanged(EventArgs)
    Control.OnContextMenuStripChanged(EventArgs)
    Control.OnCursorChanged(EventArgs)
    Control.OnDataContextChanged(EventArgs)
    Control.OnDockChanged(EventArgs)
    Control.OnForeColorChanged(EventArgs)
    Control.OnNotifyMessage(Message)
    Control.OnParentBackColorChanged(EventArgs)
    Control.OnParentBackgroundImageChanged(EventArgs)
    Control.OnParentBindingContextChanged(EventArgs)
    Control.OnParentCursorChanged(EventArgs)
    Control.OnParentDataContextChanged(EventArgs)
    Control.OnParentEnabledChanged(EventArgs)
    Control.OnParentFontChanged(EventArgs)
    Control.OnParentForeColorChanged(EventArgs)
    Control.OnParentRightToLeftChanged(EventArgs)
    Control.OnParentVisibleChanged(EventArgs)
    Control.OnPrint(PaintEventArgs)
    Control.OnTabIndexChanged(EventArgs)
    Control.OnTabStopChanged(EventArgs)
    Control.OnTextChanged(EventArgs)
    Control.OnClick(EventArgs)
    Control.OnClientSizeChanged(EventArgs)
    Control.OnControlAdded(ControlEventArgs)
    Control.OnControlRemoved(ControlEventArgs)
    Control.OnLocationChanged(EventArgs)
    Control.OnDoubleClick(EventArgs)
    Control.OnDragEnter(DragEventArgs)
    Control.OnDragOver(DragEventArgs)
    Control.OnDragLeave(EventArgs)
    Control.OnDragDrop(DragEventArgs)
    Control.OnGiveFeedback(GiveFeedbackEventArgs)
    Control.OnEnter(EventArgs)
    Control.InvokeGotFocus(Control, EventArgs)
    Control.OnHelpRequested(HelpEventArgs)
    Control.OnInvalidated(InvalidateEventArgs)
    Control.OnKeyDown(KeyEventArgs)
    Control.OnKeyPress(KeyPressEventArgs)
    Control.OnKeyUp(KeyEventArgs)
    Control.OnLeave(EventArgs)
    Control.InvokeLostFocus(Control, EventArgs)
    Control.OnLostFocus(EventArgs)
    Control.OnMarginChanged(EventArgs)
    Control.OnMouseDoubleClick(MouseEventArgs)
    Control.OnMouseClick(MouseEventArgs)
    Control.OnMouseCaptureChanged(EventArgs)
    Control.OnMouseEnter(EventArgs)
    Control.OnMouseLeave(EventArgs)
    Control.OnDpiChangedBeforeParent(EventArgs)
    Control.OnDpiChangedAfterParent(EventArgs)
    Control.OnMouseHover(EventArgs)
    Control.OnQueryContinueDrag(QueryContinueDragEventArgs)
    Control.OnRegionChanged(EventArgs)
    Control.OnPreviewKeyDown(PreviewKeyDownEventArgs)
    Control.OnSizeChanged(EventArgs)
    Control.OnChangeUICues(UICuesEventArgs)
    Control.OnStyleChanged(EventArgs)
    Control.OnValidating(CancelEventArgs)
    Control.OnValidated(EventArgs)
    Control.PerformLayout()
    Control.PerformLayout(Control, string)
    Control.PointToClient(Point)
    Control.PointToScreen(Point)
    Control.PreProcessMessage(ref Message)
    Control.PreProcessControlMessage(ref Message)
    Control.ProcessKeyEventArgs(ref Message)
    Control.ProcessKeyMessage(ref Message)
    Control.ProcessKeyPreview(ref Message)
    Control.RaiseDragEvent(object, DragEventArgs)
    Control.RaisePaintEvent(object, PaintEventArgs)
    Control.RecreateHandle()
    Control.RectangleToClient(Rectangle)
    Control.RectangleToScreen(Rectangle)
    Control.ReflectMessage(nint, ref Message)
    Control.ResetMouseEventArgs()
    Control.ResetText()
    Control.ResumeLayout()
    Control.ResumeLayout(bool)
    Control.Scale(SizeF)
    Control.Select()
    Control.SelectNextControl(Control, bool, bool, bool, bool)
    Control.SendToBack()
    Control.SetBounds(int, int, int, int)
    Control.SetBounds(int, int, int, int, BoundsSpecified)
    Control.SetBoundsCore(int, int, int, int, BoundsSpecified)
    Control.SetClientSizeCore(int, int)
    Control.SizeFromClientSize(Size)
    Control.SetStyle(ControlStyles, bool)
    Control.SetTopLevel(bool)
    Control.SetVisibleCore(bool)
    Control.RtlTranslateAlignment(HorizontalAlignment)
    Control.RtlTranslateAlignment(LeftRightAlignment)
    Control.RtlTranslateAlignment(ContentAlignment)
    Control.RtlTranslateHorizontal(HorizontalAlignment)
    Control.RtlTranslateLeftRight(LeftRightAlignment)
    Control.RtlTranslateContent(ContentAlignment)
    Control.Show()
    Control.SuspendLayout()
    Control.Update()
    Control.UpdateBounds()
    Control.UpdateBounds(int, int, int, int)
    Control.UpdateBounds(int, int, int, int, int, int)
    Control.UpdateZOrder()
    Control.UpdateStyles()
    Control.OnImeModeChanged(EventArgs)
    Control.InvokeAsync(Action, CancellationToken)
    Control.InvokeAsync<T>(Func<T>, CancellationToken)
    Control.InvokeAsync(Func<CancellationToken, ValueTask>, CancellationToken)
    Control.InvokeAsync<T>(Func<CancellationToken, ValueTask<T>>, CancellationToken)
    Control.AccessibilityObject
    Control.AccessibleDefaultActionDescription
    Control.AccessibleDescription
    Control.AccessibleName
    Control.AccessibleRole
    Control.AllowDrop
    Control.Anchor
    Control.AutoScrollOffset
    Control.LayoutEngine
    Control.DataContext
    Control.BackgroundImage
    Control.BackgroundImageLayout
    Control.Bottom
    Control.Bounds
    Control.CanFocus
    Control.CanRaiseEvents
    Control.CanSelect
    Control.Capture
    Control.CausesValidation
    Control.CheckForIllegalCrossThreadCalls
    Control.ClientRectangle
    Control.ClientSize
    Control.CompanyName
    Control.ContainsFocus
    Control.ContextMenuStrip
    Control.Controls
    Control.Created
    Control.Cursor
    Control.DataBindings
    Control.DefaultBackColor
    Control.DefaultCursor
    Control.DefaultFont
    Control.DefaultForeColor
    Control.DefaultMargin
    Control.DefaultMaximumSize
    Control.DefaultMinimumSize
    Control.DefaultPadding
    Control.DeviceDpi
    Control.IsDisposed
    Control.Disposing
    Control.Dock
    Control.DoubleBuffered
    Control.Enabled
    Control.Focused
    Control.Font
    Control.FontHeight
    Control.ForeColor
    Control.Handle
    Control.HasChildren
    Control.Height
    Control.IsHandleCreated
    Control.InvokeRequired
    Control.IsAccessible
    Control.IsAncestorSiteInDesignMode
    Control.IsMirrored
    Control.Left
    Control.Location
    Control.Margin
    Control.MaximumSize
    Control.MinimumSize
    Control.ModifierKeys
    Control.MouseButtons
    Control.MousePosition
    Control.Name
    Control.Parent
    Control.ProductName
    Control.ProductVersion
    Control.RecreatingHandle
    Control.Region
    Control.RenderRightToLeft
    Control.ResizeRedraw
    Control.Right
    Control.RightToLeft
    Control.ScaleChildren
    Control.Size
    Control.TabIndex
    Control.TabStop
    Control.Tag
    Control.Top
    Control.TopLevelControl
    Control.ShowKeyboardCues
    Control.UseWaitCursor
    Control.Visible
    Control.Width
    Control.PreferredSize
    Control.Padding
    Control.DefaultImeMode
    Control.ImeMode
    Control.ImeModeBase
    Control.PropagatingImeMode
    Control.BackColorChanged
    Control.BackgroundImageChanged
    Control.BackgroundImageLayoutChanged
    Control.BindingContextChanged
    Control.CausesValidationChanged
    Control.ClientSizeChanged
    Control.ContextMenuStripChanged
    Control.CursorChanged
    Control.DockChanged
    Control.EnabledChanged
    Control.FontChanged
    Control.ForeColorChanged
    Control.LocationChanged
    Control.MarginChanged
    Control.RegionChanged
    Control.RightToLeftChanged
    Control.SizeChanged
    Control.TabIndexChanged
    Control.TabStopChanged
    Control.VisibleChanged
    Control.Click
    Control.ControlAdded
    Control.ControlRemoved
    Control.DataContextChanged
    Control.DragDrop
    Control.DragEnter
    Control.DragOver
    Control.DragLeave
    Control.GiveFeedback
    Control.HandleCreated
    Control.HandleDestroyed
    Control.HelpRequested
    Control.Invalidated
    Control.PaddingChanged
    Control.Paint
    Control.QueryContinueDrag
    Control.QueryAccessibilityHelp
    Control.DoubleClick
    Control.Enter
    Control.GotFocus
    Control.Layout
    Control.Leave
    Control.LostFocus
    Control.MouseClick
    Control.MouseDoubleClick
    Control.MouseCaptureChanged
    Control.DpiChangedBeforeParent
    Control.DpiChangedAfterParent
    Control.MouseHover
    Control.MouseWheel
    Control.Move
    Control.PreviewKeyDown
    Control.Resize
    Control.ChangeUICues
    Control.StyleChanged
    Control.SystemColorsChanged
    Control.Validating
    Control.Validated
    Control.ParentChanged
    Control.ImeModeChanged
    Component.Dispose()
    Component.GetService(Type)
    Component.ToString()
    Component.Container
    Component.DesignMode
    Component.Events
    Component.Disposed
    MarshalByRefObject.GetLifetimeService()
    MarshalByRefObject.InitializeLifetimeService()
    MarshalByRefObject.MemberwiseClone(bool)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Extension Methods
    ControlExtensions.InvokeIfRequired<T>(T, Action<T>)
    TypeExtensions.CanSerializeJson<T>(T)
    TypeExtensions.CanSerializeXml<T>(T)
    TypeExtensions.SerializeJson<T>(T)
    TypeExtensions.SerializeXml<T>(T)
    ControlExtensions.ApplyFont(Control, Font)

    Remarks

    A button can be retrieved using GetButton(string); this allows you to add an event handler to the button. Most commonly, an OnClick event handler should be added to a button.

    Constructors

    AuPropertyGrid(bool)

    Create a new property grid, specifying whether to hide the property page button by default.
    public AuPropertyGrid(bool hidePropertyPageButton)

    Parameters

    hidePropertyPageButton bool
    Should the property page button be hidden?

    AuPropertyGrid(IContainer)

    Create a new property grid. The property page button is hidden by default.
    public AuPropertyGrid(IContainer container)

    Parameters

    container IContainer

    AuPropertyGrid(IContainer, bool)

    Create a new property grid, specifying whether to hide the property page button by default.
    public AuPropertyGrid(IContainer container, bool hidePropertyPageButton)

    Parameters

    container IContainer
    hidePropertyPageButton bool

    Methods

    AddButton(string, ToolStripButton)

    Add a new button to the property grid with the specified key.
    [UsedImplicitly]
    public bool AddButton(string key, ToolStripButton button)

    Parameters

    key string
    A unique key to identify the button.
    button ToolStripButton
    The ToolStripButton to add.

    Returns

    bool
    true if the button was added; false otherwise.

    Dispose(bool)

    Disposes of the resources (other than memory) used by the PropertyGrid.
    protected override void Dispose(bool disposing)

    Parameters

    disposing bool
    true to release both managed and unmanaged resources; false to release only unmanaged resources.

    DrawButtons()

    Draw the custom buttons on the property grid. This method should be called after adding or removing buttons from the property grid via AddButton(string, ToolStripButton) or RemoveButton(string).
    [UsedImplicitly]
    public void DrawButtons()

    GetButton(string)

    Get the button specified by the key.
    [UsedImplicitly]
    public ToolStripButton? GetButton(string key)

    Parameters

    key string
    The unique key of the button to get.

    Returns

    ToolStripButton

    RemoveButton(string)

    Remove the button specified by key from the property grid.
    [UsedImplicitly]
    public bool RemoveButton(string key)

    Parameters

    key string
    The unique key of the button to remove.

    Returns

    bool
    true if the button was removed; false otherwise.
    (c) 2024 Ethan Hann. All rights reserved.