C# Класс PresentationControls.Popup

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
LastClosedTimeStamp DateTime

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

Метод Описание
PaintSizeGrip ( PaintEventArgs e ) : void

Paints the size grip.

Popup ( Control content ) : System

Initializes a new instance of the PopupControl.Popup class.

Pop-up will be disposed immediately after disposion of the content control.

Show ( Control control ) : void

Shows pop-up window below the specified control.

When there is no space below the specified control, the pop-up control is shown above it.

Show ( Control control, Rectangle area ) : void

Shows pop-up window below the specified area of specified control.

When there is no space below specified area, the pop-up control is shown above it.

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

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

Clean up any resources being used.

OnClosed ( ToolStripDropDownClosedEventArgs e ) : void
OnOpened ( EventArgs e ) : void

Raises the E:System.Windows.Forms.ToolStripDropDown.Opened event.

OnOpening ( CancelEventArgs e ) : void

Raises the E:System.Windows.Forms.ToolStripDropDown.Opening event.

OnSizeChanged ( EventArgs e ) : void

Raises the E:System.Windows.Forms.Control.SizeChanged event.

OnVisibleChanged ( EventArgs e ) : void
ProcessDialogKey ( Keys keyData ) : bool

Processes a dialog box key.

SetVisibleCore ( bool visible ) : void

Adjusts the size of the owner T:System.Windows.Forms.ToolStrip to accommodate the T:System.Windows.Forms.ToolStripDropDown if the owner T:System.Windows.Forms.ToolStrip is currently displayed, or clears and resets active T:System.Windows.Forms.ToolStripDropDown child controls of the T:System.Windows.Forms.ToolStrip if the T:System.Windows.Forms.ToolStrip is not currently displayed.

UpdateRegion ( ) : void

Updates the pop-up region.

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

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

Required method for Designer support - do not modify the contents of this method with the code editor.

InternalProcessResizing ( Message &m, bool contentControl ) : bool
OnGetMinMaxInfo ( Message &m ) : bool
OnNcHitTest ( Message &m, bool contentControl ) : bool
ProcessResizing ( Message &m ) : bool
SetOwnerItem ( Control control ) : void
WndProc ( Message &m ) : void

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

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

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Результат void

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

protected OnClosed ( ToolStripDropDownClosedEventArgs e ) : void
e ToolStripDropDownClosedEventArgs
Результат void

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

Raises the E:System.Windows.Forms.ToolStripDropDown.Opened event.
protected OnOpened ( EventArgs e ) : void
e EventArgs An that contains the event data.
Результат void

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

Raises the E:System.Windows.Forms.ToolStripDropDown.Opening event.
protected OnOpening ( CancelEventArgs e ) : void
e CancelEventArgs A that contains the event data.
Результат void

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

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

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

protected OnVisibleChanged ( EventArgs e ) : void
e EventArgs
Результат void

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

Paints the size grip.
public PaintSizeGrip ( PaintEventArgs e ) : void
e PaintEventArgs The instance containing the event data.
Результат void

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

Initializes a new instance of the PopupControl.Popup class.
Pop-up will be disposed immediately after disposion of the content control.
is null.
public Popup ( Control content ) : System
content Control The content of the pop-up.
Результат System

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

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

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

Adjusts the size of the owner T:System.Windows.Forms.ToolStrip to accommodate the T:System.Windows.Forms.ToolStripDropDown if the owner T:System.Windows.Forms.ToolStrip is currently displayed, or clears and resets active T:System.Windows.Forms.ToolStripDropDown child controls of the T:System.Windows.Forms.ToolStrip if the T:System.Windows.Forms.ToolStrip is not currently displayed.
protected SetVisibleCore ( bool visible ) : void
visible bool true if the owner is currently displayed; otherwise, false.
Результат void

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

Shows pop-up window below the specified control.
When there is no space below the specified control, the pop-up control is shown above it.
is null.
public Show ( Control control ) : void
control Control The control below which the pop-up will be shown.
Результат void

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

Shows pop-up window below the specified area of specified control.
When there is no space below specified area, the pop-up control is shown above it.
is null.
public Show ( Control control, Rectangle area ) : void
control Control The control used to compute screen location of specified area.
area Rectangle The area of control below which the pop-up will be shown.
Результат void

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

Updates the pop-up region.
protected UpdateRegion ( ) : void
Результат void

Описание свойств

LastClosedTimeStamp публичное свойство

public DateTime LastClosedTimeStamp
Результат DateTime