public static ParagraphProperties UncompressPAP(ParagraphProperties parent, byte[] grpprl, int Offset) { ParagraphProperties newProperties = null; newProperties = (ParagraphProperties)parent.Clone(); SprmIterator sprmIt = new SprmIterator(grpprl, Offset); while (sprmIt.HasNext()) { SprmOperation sprm = sprmIt.Next(); // PAPXs can contain table sprms if the paragraph marks the end of a // table row if (sprm.Type == SprmOperation.TYPE_PAP) { UncompressPAPOperation(newProperties, sprm); } } return newProperties; }
/** * clone the ParagraphProperties object associated with this Paragraph so * that you can apply the same properties to another paragraph. * */ public ParagraphProperties CloneProperties() { return((ParagraphProperties)_props.Clone()); }