ComponentFactory.Krypton.Toolkit.KryptonContextMenuSeparator.SetPaletteRedirect C# (CSharp) Method

SetPaletteRedirect() private method

private SetPaletteRedirect ( PaletteDoubleRedirect redirector ) : void
redirector PaletteDoubleRedirect
return void
        internal void SetPaletteRedirect(PaletteDoubleRedirect redirector)
        {
            _redirectSeparator.SetRedirectStates(redirector, redirector);
        }

Usage Example

        /// <summary>
        /// Initialize a new instance of the ViewDrawMenuSeparator class.
        /// </summary>
        /// <param name="separator">Reference to owning separator entry.</param>
        /// <param name="palette">Palette for obtaining drawing values.</param>
        public ViewDrawMenuSeparator(KryptonContextMenuSeparator separator,
                                     PaletteDoubleRedirect palette)
            : base(separator.StateNormal.Back, separator.StateNormal.Border)
        {
            // Draw the separator by default
            Draw = true;

            // Give the separator object the redirector to use when inheriting values
            separator.SetPaletteRedirect(palette);

            Orientation = separator.Horizontal ? VisualOrientation.Top : VisualOrientation.Left;

            // We need to be big enough to contain 1 pixel square spacer
            Add(new ViewLayoutSeparator(1));
        }
All Usage Examples Of ComponentFactory.Krypton.Toolkit.KryptonContextMenuSeparator::SetPaletteRedirect