In This Topic
The following tables list the members exposed by NDocument.
Public Fields
Public Properties
| Name | Description |
| CuExpressionEvaluationCycle | Gets the current expression evaluation cycle. Returns -1 if the document is not currently evaluated, or the evaluation is not inside the expression evaluation cycle. |
| CurEvaluationPass | Gets the current evalutaion pass. Returns -1 if the document is not currently evaluated. |
| CurMeasureArrangeCycle | Gets the current measure and arrange cycle. Returns -1 if the document is not currently evaluated, or the evaluation is not inside the measure and arrange cycle. |
| DisplaySurface | Gets the display surface in which this document resides. |
| EvaluationRate | Gets or sets the number of times in a second in which the document automatically performs evaluation. If set to zero or a negative value, the document will stop automatic evaluation. |
| HistoryVersion | Gets the current history version. The value of this property is automatically increased by Nevron, whenever changes that are connected with the document history occur in the document. |
| InheritHistoryService | Gets or sets whether this document inherits the history service of its owner document or not. By default set to true. |
| InheritMedia | Gets or sets whether this document must inherit the media of this owner document, in case the value of the Media property is null. The currently used effective media (either the local one or the one inherited from a parent document) can be obtained by the GetMedia() method. By default set to true. |
| InheritStyleSheets | Gets or sets whether this document inherits the stylesheets of its owner document or not. The sheets inherited from a base cascade are considered to be of inherited origin in the respective inheritance level. By default set to true. |
| IntegratedEvaluation | Gets or sets whether the evaluation of this document is integrated inside the evaluation of the owner document. By default set to true. |
| IsCompound | Gets whether this document is a compound document or not. If this property returns true, the embedded documents can be obtained by the GetEmbeddedDocuments() method. |
| IsEmbedded | Gets whether this document is embedded or not. If this property returns true, the compound document in which the document resides can be obtained by the OwnerDocument property. |
| IsEvaluating | Gets whether the document is currently evaluating its content. |
| LocalHistoryService | Gets or sets the document local history service, which this document must use when it wants to record history actions. If specified, this history service becomes the effective history service of the document and all embedded documents that do not have a local history service. |
| MaxEvaluationPasses | Gets or sets the number of evaluation passes in which this document tries to resolve all expressions, styling, measure and layout tasks. The value of this property is considered before the document evaluation. |
| MaxExpressionCycles | Gets or sets the number of cycles the document must perform to resolve any cyclic expression dependencies, during a single evalution pass. The value of this property is considered before the document evaluation. |
| MaxMeasureArrangeCycles | Gets or sets the number of cycles the document must perform to resolve any cyclic measure/layout dependencies, during a single evalution pass. The value of this property is considered before the document evaluation. |
| Media | Gets or sets the document local media. It affects the set of stylesheets that need to be applied to the document. By default set to null. In case of null, the document will try to inherit a media from its parent document, if the InheritMedia property is true. The currently used effective media (either the local one or the one inherited from a parent document) can be obtained by the GetMedia() method. |
| Modified | Specifies whether the document is considered modified from an earlier state. This property is automatically set to true by Nevron, whenever a change, that is recorded by history has occured in the document content. |
| StyleSheets | Gets or sets the collection of style sheets, that control the styling of the document elements. |
| UniqueId | Gets or sets the Unique Id of this document. By default initialized with the value of a random GUID. It is an user responsibility to assign a globally unique id to this property. |
Top
Protected Properties
| Name | Description |
| Ybfb | |
Top
Public Methods
| Name | Description |
| CommitHistoryTransaction | Commits the last started transaction, in the document effective history service. |
| Evaluate | Causes the document to perform evaluation. Evaluation is automatically performed on regular intervals of time, but can also be performed by the user at will. Document evaluation computes all expressions, styles, measures and layouts and is performed prior to rendering. |
| GetDocumentElement | Gets the document content element (root of element hierarchy hosted by this document). |
| GetElementById | Gets the element with the specified id. |
| GetElementByUserId | Gets the first descendant element with the specified NElement.UserId. |
| GetEmbeddedDocuments | Gets a list of the documents, currently embedded in this document. |
| GetMedia | Overridden. Gets the media that this document currently uses. |
| GetResolution | Gets the resolution with which this visual is rendered (in DPI) |
| InvalidateCascade | Invalidates the cascade and forces cascade reconstruction and style recomputation of all document elements to be performed on the next document evaluation. If the document has embedded documents, that inherit stylesheets from this document cascade, their cascades are also invalidated. This method is automatically called when any styling node of the document have changed. |
| PauseHistoryService | Pauses the document effective history service. |
| PoolForArrangeValidation | Pools the specified element for layout validation, thus causing it to receive a ValidateArrange callback at the next evaluation cycle. |
| PoolForDisplayValidation | Pools the specified element for display validation, thus causing it to receive a ValidateDisplay callback at the next evaluation cycle. |
| PoolForMeasureValidation | Pools the specified element for measure validation, thus causing it to receive a ValidateMeasure callback at the next evaluation cycle. |
| PoolForStyleValidation | Pools the specified element for style validation, thus causing it to receive a ValidateStyle callback at the next evaluation cycle. |
| ResumeHistoryService | Resumes the owner document effective history service. |
| RollbackHistoryTransaction | Rolls back the last started transaction, in the document effective history service. |
| StartHistoryTransaction | Overloaded. Starts a new transaction, in the document effective history service |
Top
Public Events
| Name | Description |
| ModifiedChanged | Occurs when the document Modified property has changed |
Top
See Also