ComponentFactory.Krypton.Toolkit.ViewDrawDocker.Add C# (CSharp) Method

Add() public method

Append a view to the collection.
public Add ( ViewBase item, ViewDockStyle dock ) : void
item ViewBase ViewBase reference.
dock ViewDockStyle DockStyle setting.
return void
        public void Add(ViewBase item, ViewDockStyle dock)
        {
            // Add the child to the view
            Add(item);

            // Set the initial docking for the new element
            SetDock(item, dock);
        }

Usage Example

コード例 #1
0
        /// <summary>
        /// Add the spacing views into the indexed docker.
        /// </summary>
        /// <param name="i">Index of docker.</param>
        /// <param name="spacerL">Spacer for the left side.</param>
        /// <param name="spacerR">Spacer for the right side.</param>
        protected override void AddSpacersToDocker(int i,
                                                   ViewLayoutMetricSpacer spacerL,
                                                   ViewLayoutMetricSpacer spacerR)
        {
            // Get the indexed instance
            ViewDrawDocker viewDocker = _viewDockers[i];

            // Add them into the view docker instance
            viewDocker.Add(spacerL, ViewDockStyle.Left);
            viewDocker.Add(spacerR, ViewDockStyle.Right);
        }
All Usage Examples Of ComponentFactory.Krypton.Toolkit.ViewDrawDocker::Add