McPanelsAdd Method (Control, String, String, mcPanelLocation, Rectangle, mcControlType, String, String, Object, mcPanelsOptions)
|
|
Add control into panels (control may implements IMcPanelControl interface).
Namespace:
MediaCy.IQL.Application
Assembly:
MediaCy.IQL.Application (in MediaCy.IQL.Application.dll) Version: 3.1.0.0
SyntaxPublic Function Add (
control As Control,
key As String,
caption As String,
location As mcPanelLocation,
undockedRect As Rectangle,
Optional type As mcControlType = mcControlType.mcctUserControl,
Optional tabKey As String = Nothing,
Optional tabCaption As String = Nothing,
Optional userParams As Object = Nothing,
Optional options As mcPanelsOptions = mcPanelsOptions.mcpoNone
) As Boolean
Parameters
- control
- Type: System.Windows.FormsControl
object of type Control - key
- Type: SystemString
unique key of the control - caption
- Type: SystemString
caption of the control - location
- Type: MediaCy.IQL.ApplicationmcPanelLocation
initial location of the control - undockedRect
- Type: System.DrawingRectangle
location of the panel (used only for Undocked panel) - type (Optional)
- Type: mcControlType
type of the control: UserControl, ExpandablePanel - tabKey (Optional)
- Type: SystemString
unique key of the tab - tabCaption (Optional)
- Type: SystemString
caption for bar/tab (if empty then caption used) - userParams (Optional)
- Type: SystemObject
see IMcPanelControl interface - options (Optional)
- Type: MediaCy.IQL.ApplicationmcPanelsOptions
mcpoUpdateSize - update size of the bars, mcpoDoNotDispose - do not dispose control on ControlRemoved
Return Value
Type:
BooleanTrue - if control added successfully.
Implements
IMcPanelsAdd(Control, String, String, mcPanelLocation, Rectangle, mcControlType, String, String, Object, mcPanelsOptions)
RemarksAny control of type Forms.Control could be added in to panels.
See Also