C# Класс ZForge.Controls.ExplorerBar.Expando

Наследование: System.Windows.Forms.Control, ISupportInitialize
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CalcAnimationHeights void
CalcHeightAndLayout int
FireCustomSettingsChanged void
MatchControlCollToItemColl void
ShouldSerializeSize bool
UpdateItems void

Открытые методы

Метод Описание
BeginInit ( ) : void

Signals the object that initialization is starting

BeginUpdate ( ) : void

Prevents the Expando from drawing until the EndUpdate method is called

Collapse ( ) : void

Collapses the group without any animation.

DoLayout ( ) : void

Forces the control to apply layout logic to child controls, and adjusts the height of the Expando if necessary

DoLayout ( bool performRealLayout ) : void

Forces the control to apply layout logic to child controls, and adjusts the height of the Expando if necessary

EndInit ( ) : void

Signals the object that initialization is complete

EndUpdate ( ) : void

Resumes drawing of the Expando after drawing is suspended by the BeginUpdate method

Expand ( ) : void

Expands the group without any animation.

Expando ( ) : System

Initializes a new instance of the Expando class with default settings

HideControl ( Control control ) : void

Hides the specified Control

ResetCustomSettings ( ) : void

Resets the custom settings to their default values

ShowControl ( Control control ) : void

Shows the specified Control

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the Expando and optionally releases the managed resources

FindFocusedChild ( ) : Control

Gets the control contained in the Expando that currently has focus

GetCollapsedImage ( ) : Image

Gets the image to be used in the animation while the Expando is in its collapsed state

GetExpandedImage ( ) : Image

Gets the image to be used in the animation while the Expando is in its expanded state

GetFadeAnimationImage ( ) : Image

Returns an image of the group's display area to be used in the fade animation

InvalidateTitleBar ( ) : void

Invalidates the titlebar area

OnControlAdded ( System.Windows.Forms.ControlEventArgs e ) : void

Raises the ControlAdded event

OnControlRemoved ( System.Windows.Forms.ControlEventArgs e ) : void

Raises the ControlRemoved event

OnCustomSettingsChanged ( EventArgs e ) : void

Raises the CustomSettingsChanged event

OnGotFocus ( EventArgs e ) : void

Raises the GotFocus event

OnItemAdded ( System.Windows.Forms.ControlEventArgs e ) : void

Raises the ItemAdded event

OnItemRemoved ( System.Windows.Forms.ControlEventArgs e ) : void

Raises the ItemRemoved event

OnKeyUp ( KeyEventArgs e ) : void

Raises the KeyUp event

OnLocationChanged ( EventArgs e ) : void

Raises the LocationChanged event

OnLostFocus ( EventArgs e ) : void

Raises the LostFocus event

OnMouseDown ( MouseEventArgs e ) : void

Raises the MouseDown event

OnMouseLeave ( EventArgs e ) : void

Raises the MouseLeave event

OnMouseMove ( MouseEventArgs e ) : void

Raises the MouseMove event

OnMouseUp ( MouseEventArgs e ) : void

Raises the MouseUp event

OnPaint ( PaintEventArgs e ) : void

Raises the Paint event

OnPaintBackground ( PaintEventArgs e ) : void

Raises the PaintBackground event

OnPaintBorder ( Graphics g ) : void

Paints the borders

OnPaintDisplayRect ( Graphics g ) : void

Paints the "Display Rectangle". This is the dockable area of the control (ie non-titlebar/border area). This is also the same as the PseudoClientRect.

OnPaintTitleBar ( Graphics g ) : void

Paints the title bar

OnPaintTitleBarBackground ( Graphics g ) : void

Paints the title bar background

OnParentChanged ( EventArgs e ) : void

Raises the ParentChanged event

OnSizeChanged ( EventArgs e ) : void

Raises the SizeChanged event

OnSpecialGroupChanged ( ExpandoEventArgs e ) : void

Raises the SpecialGroupChanged event

OnStateChanged ( ExpandoEventArgs e ) : void

Raises the StateChanged event

OnTitleImageChanged ( ExpandoEventArgs e ) : void

Raises the TitleImageChanged event

OnWatermarkChanged ( ExpandoEventArgs e ) : void

Raises the WatermarkChanged event

PaintTransparentBackground ( Graphics g, Rectangle clipRect ) : void

Simulates a transparent background by getting the Expandos parent to paint its background and foreground into the specified Graphics at the specified location

ProcessArrowKey ( bool forward ) : bool

Selects the next available control and makes it the active control

ProcessDialogKey ( Keys keyData ) : bool

Processes a dialog key

ProcessTabKey ( bool forward ) : bool

Selects the next available control and makes it the active control

ScaleCore ( float dx, float dy ) : void

Performs the work of scaling the entire control and any child controls

StartFadeAnimation ( ) : void

Gets the Expando ready to start its collapse/expand animation

StartSlideAnimation ( ) : void

Gets the Expando ready to start its show/hide animation

StopFadeAnimation ( ) : void

Gets the Expando to stop its animation

StopSlideAnimation ( ) : void

Gets the Expando to stop its animation

UpdateFadeAnimation ( int animationStepNum, int numAnimationSteps ) : void

Updates the next "frame" of the animation

UpdateSlideAnimation ( int animationStepNum, int numAnimationSteps ) : void

Updates the next "frame" of a slide animation

Приватные методы

Метод Описание
CalcAnimationHeights ( ) : void

Caches the heights that the Expando should be for each frame of a fade animation

CalcHeightAndLayout ( ) : int

Calculates the height that the Expando would be if a call to DoLayout() were made

FireCustomSettingsChanged ( EventArgs e ) : void

Raises the CustomSettingsChanged event

MatchControlCollToItemColl ( ) : void

Make sure the controls index in the ControlCollection are the same as in the ItemCollection (indexes in the ItemCollection may have changed due to the user moving them around in the editor or calling ItemCollection.Move())

ShouldSerializeSize ( ) : bool

Specifies whether the Size property should be serialized at design time

UpdateItems ( ) : void

Updates the layout of the Expandos items while in design mode, and adds/removes itemss from the ControlCollection as necessary

Описание методов

BeginInit() публичный Метод

Signals the object that initialization is starting
public BeginInit ( ) : void
Результат void

BeginUpdate() публичный Метод

Prevents the Expando from drawing until the EndUpdate method is called
public BeginUpdate ( ) : void
Результат void

Collapse() публичный Метод

Collapses the group without any animation.
public Collapse ( ) : void
Результат void

Dispose() защищенный Метод

Releases the unmanaged resources used by the Expando and optionally releases the managed resources
protected Dispose ( bool disposing ) : void
disposing bool True to release both managed and unmanaged /// resources; false to release only unmanaged resources
Результат void

DoLayout() публичный Метод

Forces the control to apply layout logic to child controls, and adjusts the height of the Expando if necessary
public DoLayout ( ) : void
Результат void

DoLayout() публичный Метод

Forces the control to apply layout logic to child controls, and adjusts the height of the Expando if necessary
public DoLayout ( bool performRealLayout ) : void
performRealLayout bool
Результат void

EndInit() публичный Метод

Signals the object that initialization is complete
public EndInit ( ) : void
Результат void

EndUpdate() публичный Метод

Resumes drawing of the Expando after drawing is suspended by the BeginUpdate method
public EndUpdate ( ) : void
Результат void

Expand() публичный Метод

Expands the group without any animation.
public Expand ( ) : void
Результат void

Expando() публичный Метод

Initializes a new instance of the Expando class with default settings
public Expando ( ) : System
Результат System

FindFocusedChild() защищенный Метод

Gets the control contained in the Expando that currently has focus
protected FindFocusedChild ( ) : Control
Результат System.Windows.Forms.Control

GetCollapsedImage() защищенный Метод

Gets the image to be used in the animation while the Expando is in its collapsed state
protected GetCollapsedImage ( ) : Image
Результат Image

GetExpandedImage() защищенный Метод

Gets the image to be used in the animation while the Expando is in its expanded state
protected GetExpandedImage ( ) : Image
Результат Image

GetFadeAnimationImage() защищенный Метод

Returns an image of the group's display area to be used in the fade animation
protected GetFadeAnimationImage ( ) : Image
Результат Image

HideControl() публичный Метод

Hides the specified Control
public HideControl ( Control control ) : void
control System.Windows.Forms.Control The Control to hide
Результат void

InvalidateTitleBar() защищенный Метод

Invalidates the titlebar area
protected InvalidateTitleBar ( ) : void
Результат void

OnControlAdded() защищенный Метод

Raises the ControlAdded event
protected OnControlAdded ( System.Windows.Forms.ControlEventArgs e ) : void
e System.Windows.Forms.ControlEventArgs A ControlEventArgs that contains the event data
Результат void

OnControlRemoved() защищенный Метод

Raises the ControlRemoved event
protected OnControlRemoved ( System.Windows.Forms.ControlEventArgs e ) : void
e System.Windows.Forms.ControlEventArgs A ControlEventArgs that contains the event data
Результат void

OnCustomSettingsChanged() защищенный Метод

Raises the CustomSettingsChanged event
protected OnCustomSettingsChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
Результат void

OnGotFocus() защищенный Метод

Raises the GotFocus event
protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
Результат void

OnItemAdded() защищенный Метод

Raises the ItemAdded event
protected OnItemAdded ( System.Windows.Forms.ControlEventArgs e ) : void
e System.Windows.Forms.ControlEventArgs A ControlEventArgs that contains the event data
Результат void

OnItemRemoved() защищенный Метод

Raises the ItemRemoved event
protected OnItemRemoved ( System.Windows.Forms.ControlEventArgs e ) : void
e System.Windows.Forms.ControlEventArgs A ControlEventArgs that contains the event data
Результат void

OnKeyUp() защищенный Метод

Raises the KeyUp event
protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A KeyEventArgs that contains the event data
Результат void

OnLocationChanged() защищенный Метод

Raises the LocationChanged event
protected OnLocationChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
Результат void

OnLostFocus() защищенный Метод

Raises the LostFocus event
protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
Результат void

OnMouseDown() защищенный Метод

Raises the MouseDown event
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs A MouseEventArgs that contains the event data
Результат void

OnMouseLeave() защищенный Метод

Raises the MouseLeave event
protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
Результат void

OnMouseMove() защищенный Метод

Raises the MouseMove event
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs A MouseEventArgs that contains the event data
Результат void

OnMouseUp() защищенный Метод

Raises the MouseUp event
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs A MouseEventArgs that contains the event data
Результат void

OnPaint() защищенный Метод

Raises the Paint event
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A PaintEventArgs that contains the event data
Результат void

OnPaintBackground() защищенный Метод

Raises the PaintBackground event
protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs A PaintEventArgs that contains the event data
Результат void

OnPaintBorder() защищенный Метод

Paints the borders
protected OnPaintBorder ( Graphics g ) : void
g System.Drawing.Graphics The Graphics used to paint the border
Результат void

OnPaintDisplayRect() защищенный Метод

Paints the "Display Rectangle". This is the dockable area of the control (ie non-titlebar/border area). This is also the same as the PseudoClientRect.
protected OnPaintDisplayRect ( Graphics g ) : void
g System.Drawing.Graphics The Graphics used to paint the DisplayRectangle
Результат void

OnPaintTitleBar() защищенный Метод

Paints the title bar
protected OnPaintTitleBar ( Graphics g ) : void
g System.Drawing.Graphics The Graphics used to paint the titlebar
Результат void

OnPaintTitleBarBackground() защищенный Метод

Paints the title bar background
protected OnPaintTitleBarBackground ( Graphics g ) : void
g System.Drawing.Graphics The Graphics used to paint the titlebar
Результат void

OnParentChanged() защищенный Метод

Raises the ParentChanged event
protected OnParentChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
Результат void

OnSizeChanged() защищенный Метод

Raises the SizeChanged event
protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
Результат void

OnSpecialGroupChanged() защищенный Метод

Raises the SpecialGroupChanged event
protected OnSpecialGroupChanged ( ExpandoEventArgs e ) : void
e ExpandoEventArgs An ExpandoEventArgs that contains the event data
Результат void

OnStateChanged() защищенный Метод

Raises the StateChanged event
protected OnStateChanged ( ExpandoEventArgs e ) : void
e ExpandoEventArgs An ExpandoStateChangedEventArgs that contains the event data
Результат void

OnTitleImageChanged() защищенный Метод

Raises the TitleImageChanged event
protected OnTitleImageChanged ( ExpandoEventArgs e ) : void
e ExpandoEventArgs An ExpandoEventArgs that contains the event data
Результат void

OnWatermarkChanged() защищенный Метод

Raises the WatermarkChanged event
protected OnWatermarkChanged ( ExpandoEventArgs e ) : void
e ExpandoEventArgs An ExpandoEventArgs that contains the event data
Результат void

PaintTransparentBackground() защищенный Метод

Simulates a transparent background by getting the Expandos parent to paint its background and foreground into the specified Graphics at the specified location
protected PaintTransparentBackground ( Graphics g, Rectangle clipRect ) : void
g System.Drawing.Graphics The Graphics used to paint the background
clipRect System.Drawing.Rectangle The Rectangle that represents the rectangle /// in which to paint
Результат void

ProcessArrowKey() защищенный Метод

Selects the next available control and makes it the active control
protected ProcessArrowKey ( bool forward ) : bool
forward bool true to cycle forward through the controls in /// the Expando; otherwise, false
Результат bool

ProcessDialogKey() защищенный Метод

Processes a dialog key
protected ProcessDialogKey ( Keys keyData ) : bool
keyData Keys One of the Keys values that represents /// the key to process
Результат bool

ProcessTabKey() защищенный Метод

Selects the next available control and makes it the active control
protected ProcessTabKey ( bool forward ) : bool
forward bool true to cycle forward through the controls in /// the Expando; otherwise, false
Результат bool

ResetCustomSettings() публичный Метод

Resets the custom settings to their default values
public ResetCustomSettings ( ) : void
Результат void

ScaleCore() защищенный Метод

Performs the work of scaling the entire control and any child controls
protected ScaleCore ( float dx, float dy ) : void
dx float The ratio by which to scale the control horizontally
dy float The ratio by which to scale the control vertically
Результат void

ShowControl() публичный Метод

Shows the specified Control
public ShowControl ( Control control ) : void
control System.Windows.Forms.Control The Control to show
Результат void

StartFadeAnimation() защищенный Метод

Gets the Expando ready to start its collapse/expand animation
protected StartFadeAnimation ( ) : void
Результат void

StartSlideAnimation() защищенный Метод

Gets the Expando ready to start its show/hide animation
protected StartSlideAnimation ( ) : void
Результат void

StopFadeAnimation() защищенный Метод

Gets the Expando to stop its animation
protected StopFadeAnimation ( ) : void
Результат void

StopSlideAnimation() защищенный Метод

Gets the Expando to stop its animation
protected StopSlideAnimation ( ) : void
Результат void

UpdateFadeAnimation() защищенный Метод

Updates the next "frame" of the animation
protected UpdateFadeAnimation ( int animationStepNum, int numAnimationSteps ) : void
animationStepNum int The current step in the animation
numAnimationSteps int The total number of steps in the animation
Результат void

UpdateSlideAnimation() защищенный Метод

Updates the next "frame" of a slide animation
protected UpdateSlideAnimation ( int animationStepNum, int numAnimationSteps ) : void
animationStepNum int The current step in the animation
numAnimationSteps int The total number of steps in the animation
Результат void