Esempio n. 1
0
        public void CopyFrom(ReadOnlyCharacterStyle from)
        {
            if (from == null)
            {
                throw new ArgumentNullException(nameof(from));
            }

            FontWeight = from.FontWeight;
            FontStyle  = from.FontStyle;
            FontSize   = from.FontSize;
            Color      = from.Color;
            Language   = from.Language;
            Script     = from.Script;
            NativeCharStyle.FontFamilies = from.NativeCharStyle.FontFamilies;
        }
Esempio n. 2
0
 internal ReadOnlyParagraphStyle(INgsPFParagraphStyle nativeObject)
 {
     this.nativeObject   = nativeObject;
     this.characterStyle = new ReadOnlyCharacterStyle(nativeObject.CharStyle);
 }