<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=6889170&amp;fmt=gif">
Skip to content
  • There are no suggestions because the search field is empty.

DocumentItem Class | Methods

The DocumentItem type exposes the following members.

Methods

Name Description
pubMethod AddAttachment Adds the provided document as an attachment to this document.
pubMethod AddPage Adds the page to the end of the page list for this document.
pubMethod

AddText

Adds the text item to the document.
pubMethod ClearAttachments Clears the attachments assigned to this document.
pubMethod ClearPages Clears (removes) all the PageItems from the document..
pubMethod ClearText Clears (removes) all the text references for the document.
pubMethod CreateChatEvent Creates and ties a new chat event to this document.
pubMethod Equals Determines whether the specified object is equal to the current object.
(Overrides Object.Equals(Object))
pubMethod GetAttachments Gets the attachment documents belonging to this document.
pubMethod GetChatEvent Gets the chat event tied to this document.
pubMethod GetFieldData(FieldItem) Gets the field data from the document as a string.
pubMethod GetFieldData(FieldItem, Boolean) Gets the field data from the document as a string with option to set resource link handling.
pubMethod GetFirstPage  Gets the first page of the document.
pubMethod GetHashCode Serves as the default hash function.
(Overrides Object.GetHashCode())
pubMethod GetLastPage Gets the last page of the document.
pubMethod GetNative Gets the NativeItem reference.
pubMethod GetNewNative Gets a new NativeItem reference which can be linked to this instance via SetNative(NativeItem)
pubMethod GetNewPage Gets a new PageItem reference which can be added to the page collection of this document via AddPage(PageItem).
pubMethod GetNewText Gets a new TextItem reference which can be linked to this instance via SetText(TextItem)
pubMethod GetPageCount Gets the page count.
pubMethod GetPages Gets the pages linked to the document.
pubMethod GetText Gets a list of TextItems for the document.
pubMethod GetTextCount Gets the number of associated text files linked to the document.
pubMethod GetType Gets the Type of the current instance.
(Inherited from Object)
pubMethod  HasAttach Determines whether the document has any attachment/child references.
pubMethod  HasFamily Determines whether the document has any family information.
pubMethod HasNative Determines if the document item has a native file reference linked.
pubMethod HasPages Determines if the document item has page references linked to it.
pubMethod HasText Determines whether the document has any text file(s) linked.
pubMethod  IsAttach Determines whether this document is an attachment to a parent document.
pubMethod IsMultiFrame Checks if the document contains images (pages) that are in a multi-page format.
pubMethod IsParent Determines whether this document is a parent reference.
pubMethod IsRootParent Determines whether this document is a root parent.
pubMethod ReassignPageNumbers Assigns new page numbers to the pages in the document. Call this method after removing pages from the document.
pubMethod RemoveNative Removes (clears) the native reference.
pubMethod RemovePage Removes the page reference from the document.
pubMethod RemoveText Removes the text item reference from the document.
pubMethod SetFieldData(FieldItem, Boolean) Sets the field data from a bool value for the document. The field type must match Boolean.
pubMethod SetFieldData(FieldItem, DateTime) Sets the field data from a DateTime value for the document. The field type must match Date, Time, or DateTime.
pubMethod SetFieldData(FieldItem, Int64) Sets the field data from a int value for the document. The field type must match Number.
pubMethod SetFieldData(FieldItem, Object) Sets the field data from an object value for the document. The object value must match the fields data type or an exception will be thrown.
pubMethod SetFieldData(FieldItem, Single) Sets the field data from a float value for the document. The field type must match Decimal.
pubMethod SetFieldData(FieldItem, String) Sets the field data from a string value for the document.
pubMethod SetFieldData(IChoiceFieldItem, IEnumerable<String>, Boolean) Allow to set values for choice and multi choice field
pubMethod SetFieldData(IChoiceFieldItem, String, Char, Boolean) Allow to set values for choice and multi choice field
pubMethod SetNative Sets the NativeItem reference for the document.
pubMethod SetText Clears existing references and sets the text item reference.
pubMethod ToString Returns a string that represents the current object.
(Inherited from Object)
pubMethod TryGetFieldData<T>  Attempts to get the field data from the document matching the type param. If the field data is not set, false is returned, and fieldData is set to default(T). If the field has data, and matches the type, true is returned, with fieldData set to the value.

See Also

Reference
DocumentItem Class
Compiled.EDD.Scripting Namespace