ComponentFactory.Krypton.Ribbon.ViewDrawRibbonPanel.ViewDrawRibbonPanel C# (CSharp) Метод

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

Initialize a new instance of the ViewDrawRibbonPanel class.
public ViewDrawRibbonPanel ( KryptonRibbon ribbon, IPaletteBack paletteBack, NeedPaintHandler paintDelegate ) : System
ribbon KryptonRibbon Reference to owning ribbon instance.
paletteBack IPaletteBack Reference to palette for obtaining background colors.
paintDelegate NeedPaintHandler Delegate for generating repaints.
Результат System
        public ViewDrawRibbonPanel(KryptonRibbon ribbon,
                                   IPaletteBack paletteBack,
                                   NeedPaintHandler paintDelegate)
            : base(paletteBack)
        {
            _ribbon = ribbon;
            _paintDelegate = paintDelegate;

            _compBlend = new Blend();
            _compBlend.Positions = new float[] { 0.0f, 0.4f, 1.0f };
            _compBlend.Factors = new float[] { 0.0f, 0.87f, 1.0f };
        }