public void SetSubdocumentTextStreamLength(SubdocumentType type, int length) { if (length < 0) { throw new ArgumentException( "Subdocument length can't be less than 0 (passed value is " + length + "). " + "If there is no subdocument " + "length must be Set to zero."); } _longHandler.SetLong((int)type, length); }
private Range GetRange(SubdocumentType subdocument) { int startCp = 0; foreach (SubdocumentType previos in ORDERED) { int length = GetFileInformationBlock() .GetSubdocumentTextStreamLength(previos); if (subdocument == previos) { return(new Range(startCp, startCp + length, this)); } startCp += length; } throw new NotSupportedException( "Subdocument type not supported: " + subdocument); }
private Range GetRange(SubdocumentType subdocument) { int startCp = 0; foreach (SubdocumentType previos in ORDERED) { int length = GetFileInformationBlock() .GetSubdocumentTextStreamLength(previos); if (subdocument == previos) return new Range(startCp, startCp + length, this); startCp += length; } throw new NotSupportedException( "Subdocument type not supported: " + subdocument); }
public void SetSubdocumentTextStreamLength(SubdocumentType type, int length) { if (length < 0) throw new ArgumentException( "Subdocument length can't be less than 0 (passed value is " + length + "). " + "If there is no subdocument " + "length must be Set to zero."); _longHandler.SetLong((int)type, length); }
/** * @return length of specified subdocument text stream in characters */ public int GetSubdocumentTextStreamLength(SubdocumentType type) { return _longHandler.GetLong((int)type); }
/** * @return length of specified subdocument text stream in characters */ public int GetSubdocumentTextStreamLength(SubdocumentType type) { return(_longHandler.GetLong((int)type)); }