Esempio n. 1
0
        public void SetOutlineSize(int outlineSize)
        {
            if (Font == null)
            {
                throw new InvalidOperationException(Errors.E_FONT_NULL);
            }

            Font.SetOutlineSize(outlineSize);
        }
Esempio n. 2
0
        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);
        }