public void SetOutlineSize(int outlineSize) { if (Font == null) { throw new InvalidOperationException(Errors.E_FONT_NULL); } Font.SetOutlineSize(outlineSize); }
public void SetOutlineSize(int outlineSize) { if (Font == null) { throw new InvalidOperationException("Font is null."); } if (outlineSize < 0) { throw new ArgumentOutOfRangeException(nameof(outlineSize), "Outline size must be greater than or equal to 0."); } Font.SetOutlineSize(outlineSize); }