/// <summary> /// Gets the first border color. /// </summary> /// <param name="style">Border style.</param> /// <param name="state">Palette value should be applicable to this state.</param> /// <returns>Color value.</returns> public override Color GetBorderColor1(PaletteBorderStyle style, PaletteState state) { PaletteBorderEdge inherit = GetInherit(state); if (inherit != null) { return(inherit.GetBackColor1(state)); } else { return(Target.GetBorderColor1(style, state)); } }
/// <summary> /// Gets the first border color. /// </summary> /// <param name="style">Border style.</param> /// <param name="state">Palette value should be applicable to this state.</param> /// <returns>Color value.</returns> public override Color GetBorderColor1(PaletteBorderStyle style, PaletteState state) { PaletteBorderEdge inherit = GetInherit(state); return(inherit?.GetBackColor1(state) ?? Target.GetBorderColor1(style, state)); }