/// <summary> /// Copies properties from a supplied <see cref="ReadOnlyParagraphStyle" /> instance. /// </summary> /// <param name="from">The <see cref="ReadOnlyParagraphStyle" /> instance to copy property /// values from.</param> public void CopyFrom(ReadOnlyParagraphStyle from) { if (from == null) { throw new ArgumentNullException(nameof(from)); } MinimumLineHeight = from.MinimumLineHeight; LineHeightFactor = from.LineHeightFactor; TextAlign = from.TextAlign; TextDirection = from.TextDirection; WordWrapMode = from.WordWrapMode; CharacterStyle.CopyFrom(from.CharacterStyle); }
internal ParagraphStyle(INgsPFParagraphStyle nativeObject) : base(nativeObject) { characterStyle = new CharacterStyle(nativeObject.CharStyle); }