ComponentFactory.Krypton.Toolkit.PaletteDataGridViewContentStates.PopulateFromBase C# (CSharp) Method

PopulateFromBase() public method

Populate values from the base palette.
public PopulateFromBase ( PaletteState state ) : void
state PaletteState Palette state to use when populating.
return void
        public virtual void PopulateFromBase(PaletteState state)
        {
            // Get the values and set into storage
            Draw = GetContentDraw(state);
            Hint = GetContentShortTextHint(state);
            Trim = GetContentShortTextTrim(state);
            Color1 = GetContentShortTextColor1(state);
            Color2 = GetContentShortTextColor2(state);
            ColorStyle = GetContentShortTextColorStyle(state);
            ColorAlign = GetContentShortTextColorAlign(state);
            ColorAngle = GetContentShortTextColorAngle(state);
            Image = GetContentShortTextImage(state);
            ImageStyle = GetContentShortTextImageStyle(state);
            ImageAlign = GetContentShortTextImageAlign(state);
        }

Usage Example

Esempio n. 1
0
 /// <summary>
 /// Populate values from the base palette.
 /// </summary>
 /// <param name="state">Palette state to use when populating.</param>
 public void PopulateFromBase(PaletteState state)
 {
     _back.PopulateFromBase(state);
     _border.PopulateFromBase(state);
     _content.PopulateFromBase(state);
 }