/// <summary> /// Gets the color border angle. /// </summary> /// <param name="style">Border style.</param> /// <param name="state">Palette value should be applicable to this state.</param> /// <returns>Angle used for color drawing.</returns> public override float GetBorderColorAngle(PaletteBorderStyle style, PaletteState state) { PaletteBorderEdge inherit = GetInherit(state); if (inherit != null) { return(inherit.GetBackColorAngle(state)); } else { return(Target.GetBorderColorAngle(style, state)); } }
/// <summary> /// Gets the color border angle. /// </summary> /// <param name="style">Border style.</param> /// <param name="state">Palette value should be applicable to this state.</param> /// <returns>Angle used for color drawing.</returns> public override float GetBorderColorAngle(PaletteBorderStyle style, PaletteState state) { PaletteBorderEdge inherit = GetInherit(state); return(inherit?.GetBackColorAngle(state) ?? Target.GetBorderColorAngle(style, state)); }