ClassRadDocument
Represents the document object in RadRichTextBox.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class RadDocument : DocumentElement, ISupportInitialize, INotifyPropertyChanged
Inheritance: objectDocumentElementRadDocument
Implements:
Inherited Members
Constructors
RadDocument()
Initializes a new instance of the RadDocument class.
Declaration
public RadDocument()
Fields
DefaultTabWidthProperty
The default tab width style property.
Declaration
public static readonly StylePropertyDefinition<double?, DocumentProperties> DefaultTabWidthProperty
Field Value
EndnotesFirstNumberProperty
The endnotes first number style property.
Declaration
public static readonly StylePropertyDefinition<int?, DocumentProperties> EndnotesFirstNumberProperty
Field Value
EndnotesNumberingFormatProperty
The endnotes numbering format style property.
Declaration
public static readonly StylePropertyDefinition<ListNumberingFormat?, DocumentProperties> EndnotesNumberingFormatProperty
Field Value
StylePropertyDefinition<ListNumberingFormat?, DocumentProperties>
EndnotesNumberingRestartTypeProperty
The endnotes numbering restart type style property.
Declaration
public static readonly StylePropertyDefinition<NumberingRestartType?, DocumentProperties> EndnotesNumberingRestartTypeProperty
Field Value
StylePropertyDefinition<NumberingRestartType?, DocumentProperties>
EndnotesPositionProperty
The endnotes position style property.
Declaration
public static readonly StylePropertyDefinition<EndnotesPosition?, DocumentProperties> EndnotesPositionProperty
Field Value
StylePropertyDefinition<EndnotesPosition?, DocumentProperties>
FootnotesFirstNumberProperty
The footnotes first number style property.
Declaration
public static readonly StylePropertyDefinition<int?, DocumentProperties> FootnotesFirstNumberProperty
Field Value
FootnotesNumberingFormatProperty
The footnotes numbering format style property.
Declaration
public static readonly StylePropertyDefinition<ListNumberingFormat?, DocumentProperties> FootnotesNumberingFormatProperty
Field Value
StylePropertyDefinition<ListNumberingFormat?, DocumentProperties>
FootnotesNumberingRestartTypeProperty
The footnotes numbering restart type style property.
Declaration
public static readonly StylePropertyDefinition<NumberingRestartType?, DocumentProperties> FootnotesNumberingRestartTypeProperty
Field Value
StylePropertyDefinition<NumberingRestartType?, DocumentProperties>
FootnotesPositionProperty
The footnotes position style property.
Declaration
public static readonly StylePropertyDefinition<FootnotesPosition?, DocumentProperties> FootnotesPositionProperty
Field Value
StylePropertyDefinition<FootnotesPosition?, DocumentProperties>
MAX_DOCUMENT_SIZE
Represent the maximum document size.
SectionDefaultPageMarginProperty
The section default page margin style property.
Declaration
public static readonly StylePropertyDefinition<Padding?, DocumentProperties> SectionDefaultPageMarginProperty
Field Value
SectionDefaultPageOrientationProperty
The section default page orientation style property.
Declaration
public static readonly StylePropertyDefinition<PageOrientation?, DocumentProperties> SectionDefaultPageOrientationProperty
Field Value
StylePropertyDefinition<PageOrientation?, DocumentProperties>
SectionDefaultPageSizeProperty
The section default page size style property.
Declaration
public static readonly StylePropertyDefinition<Size?, DocumentProperties> SectionDefaultPageSizeProperty
Field Value
Properties
BibliographicSources
Gets or sets a collection of BibliographicSource objects.
Declaration
[XamlCompositePropertySerializable]
public NotifiableCollection<BibliographicSource> BibliographicSources { get; set; }
Property Value
BibliographicStyles
Gets or sets a dictionary keeping the styles used for the bibliographic references inside the document.
Declaration
public Dictionary<string, BibliographicReferenceStyleBase> BibliographicStyles { get; set; }
Property Value
CaptionDefinitions
Gets the caption definitions inside the document.
Declaration
public Dictionary<string, CaptionDefinition> CaptionDefinitions { get; }
Property Value
Dictionary<string, CaptionDefinition>
The caption definitions.
CaretPosition
Gets a DocumentPosition representing the current caret position.
Declaration
public DocumentPosition CaretPosition { get; }
Property Value
The current position of the caret.
CodeFormatter
Gets or sets the formatter used for code blocks.
Declaration
public CodeFormatter CodeFormatter { get; set; }
Property Value
The code formatter.
DefaultTabWidth
Gets or sets the default tab width.
Declaration
[XamlSerializable]
public double DefaultTabWidth { get; set; }
Property Value
DesiredSize
Gets a value representing the desired layout size of the document.
DocumentContentChangedInterval
Gets or sets a value determining how often to fire the DocumentContentChanged event.
Declaration
public TimeSpan DocumentContentChangedInterval { get; set; }
Property Value
DocumentLayoutBox
Gets a value representing the layout box of the document.
Declaration
public DocumentLayoutBox DocumentLayoutBox { get; }
Property Value
The DocumentLayoutBox.
DocumentVariables
Gets the document variables.
Declaration
public DocumentVariableCollection DocumentVariables { get; }
Property Value
The document variables.
EndnotesFirstNumber
Gets or sets the endnotes starting number.
Declaration
[XamlSerializable(1)]
public int EndnotesFirstNumber { get; set; }
Property Value
EndnotesNumberingFormat
Gets or sets the endnotes numbering format.
Declaration
[XamlSerializable(ListNumberingFormat.LowerRoman)]
public ListNumberingFormat EndnotesNumberingFormat { get; set; }
Property Value
EndnotesNumberingRestartType
Gets or sets the type of the endnotes numbering restart.
Declaration
[XamlSerializable(NumberingRestartType.Continuous)]
public NumberingRestartType EndnotesNumberingRestartType { get; set; }
Property Value
EndnotesPosition
Gets or sets the endnotes position.
Declaration
[XamlSerializable(EndnotesPosition.DocumentEnd)]
public EndnotesPosition EndnotesPosition { get; set; }
Property Value
FieldsDisplayMode
Gets or sets the display mode for the fields in this document.
Declaration
public FieldDisplayMode FieldsDisplayMode { get; set; }
Property Value
The fields display mode.
FootnotesFirstNumber
Gets or sets the footnotes starting number.
Declaration
[XamlSerializable(1)]
public int FootnotesFirstNumber { get; set; }
Property Value
FootnotesNumberingFormat
Gets or sets the footnotes numbering format.
Declaration
[XamlSerializable(ListNumberingFormat.Decimal)]
public ListNumberingFormat FootnotesNumberingFormat { get; set; }
Property Value
FootnotesNumberingRestartType
Gets or sets the type of the footnotes numbering restart.
Declaration
[XamlSerializable(NumberingRestartType.Continuous)]
public NumberingRestartType FootnotesNumberingRestartType { get; set; }
Property Value
FootnotesPosition
Gets or sets the footnotes position.
Declaration
[XamlSerializable(FootnotesPosition.PageBottom)]
public FootnotesPosition FootnotesPosition { get; set; }
Property Value
HasDifferentEvenAndOddHeadersFooters
Gets or sets a value indicating whether headers and footers are different in even and odd pages.
Declaration
[XamlSerializable(false)]
public bool HasDifferentEvenAndOddHeadersFooters { get; set; }
Property Value
true if headers and footers are different in even and odd pages; otherwise, false.
History
Gets the history of changes in this document.
Declaration
public DocumentHistory History { get; }
Property Value
IsEmpty
Gets a value indicating whether the document is empty.
Declaration
public bool IsEmpty { get; }
Property Value
true if the document is empty; otherwise, false.
IsStrictLineBreakingRuleEnabled
Gets or sets a value indicating whether the strict line breaking rule will be applied to Japanese text in this document.
Declaration
[XamlSerializable(false)]
public bool IsStrictLineBreakingRuleEnabled { get; set; }
Property Value
IsTrackChangesEnabled
Gets or sets a value indicating whether this instance has track changes enabled.
Declaration
[XamlSerializable(false)]
public bool IsTrackChangesEnabled { get; set; }
Property Value
true if this instance is track changes enabled; otherwise, false.
LayoutMode
Gets or sets a value representing the current layout mode.
Declaration
[XamlSerializable]
public DocumentLayoutMode LayoutMode { get; set; }
Property Value
The layout mode.
LineBreakingRuleLanguage
Gets or sets the language which rules should be used for line breaking in the paragraphs.
Declaration
public LineBreakingRuleLanguage LineBreakingRuleLanguage { get; set; }
Property Value
The line breaking rule language.
LineSpacing
Gets or set the line spacing of this document.
Declaration
[XamlSerializable]
public double LineSpacing { get; set; }
Property Value
LineSpacingType
Gets or set the line spacing type of this document.
Declaration
[XamlSerializable]
public LineSpacingType LineSpacingType { get; set; }
Property Value
ListManager
Gets the list manager.
Declaration
public ListManager ListManager { get; }
Property Value
The ListManager instance responsible for this document.
MailMergeDataSource
Gets the data source used for mail merge operations with this document.
Declaration
public MailMergeDataSource MailMergeDataSource { get; }
Property Value
The mail merge data source.
NoLineBreaksAfterRule
Gets or sets a rule determining which characters cannot end a line in East-Asian languages.
Declaration
[XamlCompositePropertySerializable]
public LineBreakingRule NoLineBreaksAfterRule { get; set; }
Property Value
NoLineBreaksBeforeRule
Gets or sets a rule determining which characters cannot start a line in East-Asian languages.
Declaration
[XamlCompositePropertySerializable]
public LineBreakingRule NoLineBreaksBeforeRule { get; set; }
Property Value
ParagraphDefaultSpacingAfter
Gets or sets the default spacing after a paragraph.
Declaration
[XamlSerializable]
public double ParagraphDefaultSpacingAfter { get; set; }
Property Value
ParagraphDefaultSpacingBefore
Gets or sets the default spacing before a paragraph.
Declaration
[XamlSerializable]
public double ParagraphDefaultSpacingBefore { get; set; }
Property Value
ProtectionSettings
Gets or sets the protection settings.
Declaration
[XamlCompositePropertySerializable]
public DocumentProtectionSettings ProtectionSettings { get; set; }
Property Value
The protection settings.
SectionDefaultPageMargin
Gets or sets the default section page margin.
Declaration
[XamlSerializable]
public Padding SectionDefaultPageMargin { get; set; }
Property Value
SectionDefaultPageOrientation
Gets or sets the default section page orientation
Declaration
[XamlSerializable]
public PageOrientation SectionDefaultPageOrientation { get; set; }
Property Value
PageOrientation
SectionDefaultPageSize
Gets or sets the default section page size.
Declaration
[XamlSerializable]
public Size SectionDefaultPageSize { get; set; }
Property Value
Size
Sections
Gets a collection with the sections of the document.
Declaration
public SectionCollection Sections { get; }
Property Value
A SectionCollection representing the sections of the document.
SelectedBibliographicStyle
Gets or sets the selected bibliographic style.
Declaration
public BibliographicReferenceStyleBase SelectedBibliographicStyle { get; set; }
Property Value
BibliographicReferenceStyleBase
The selected bibliographic style.
Selection
Gets a DocumentSelection representing the document selection.
Declaration
public DocumentSelection Selection { get; }
Property Value
The document selection.
ShowBookmarks
Gets or sets a value indicating whether to show bookmarks.
Declaration
public bool ShowBookmarks { get; set; }
Property Value
true if the bookmarks should be visualized; otherwise, false.
ShowFormattingSymbols
Gets or sets a value indicating whether to show formatting symbols.
Declaration
public bool ShowFormattingSymbols { get; set; }
Property Value
true if the formatting symbols should be visualized; otherwise, false.
ShowMergeFieldsHighlight
Gets or sets a value indicating whether the merge fields in the document should have a highlight.
Declaration
public bool ShowMergeFieldsHighlight { get; set; }
Property Value
true if the merge fields should be highlighted; otherwise, false.
ShowReadOnlyRangesHighlight
Gets or sets a value indicating whether the read only ranges in the document should have a highlight.
Declaration
public bool ShowReadOnlyRangesHighlight { get; set; }
Property Value
true if the read only ranges should be highlighted; otherwise, false.
StructureChangeInProgress
Gets a value indicating whether a structure change is in progress.
Declaration
public bool StructureChangeInProgress { get; }
Property Value
true if the the structure of the document is currently being changed; otherwise, false.
StyleRepository
Gets the collection of styles inside the document.
Declaration
public StyleCollection StyleRepository { get; }
Property Value
The style repository.
Methods
AddCustomListStyle(ListStyle)
Adds a custom list style to the document.
Arrange(RectangleF)
Arranges the document.
Declaration
public void Arrange(RectangleF arrangeRect)
Parameters
arrangeRect
The rectangle to arrange in.
BeginStylesUpdate()
Marks the start of styles editing and temporarily suspends the updates of the styles.
Declaration
public void BeginStylesUpdate()
CallOnDocumentContentChanged()
Calls the DocumentContentChanged event.
Declaration
protected void CallOnDocumentContentChanged()
CanUnprotectDocument(string)
Determines whether this instance can be unprotected using the specified password.
ContainsAnnotationMarkersOfType<T>()
Determines whether the document contains annotation markers of type T.
Declaration
public bool ContainsAnnotationMarkersOfType<T>() where T : AnnotationMarkerBase
Returns
CopyPropertiesFromOverride(DocumentElement)
Copies the properties from another RadDocument to the current instance.
Declaration
protected override void CopyPropertiesFromOverride(DocumentElement element)
Parameters
element
The RadDocument to copy the properties from.
Overrides
CreateDeepCopy()
Creates a deep copy of the document.
Declaration
public override DocumentElement CreateDeepCopy()
Returns
The copied element.
Overrides
CreateLayoutBox(DocumentStructureCollection)
Creates a DocumentLayoutBox for the element.
Declaration
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
Parameters
documentCollection
The document collection.
Returns
Thew new DocumentLayoutBox.
Overrides
CreateNewElementInstance()
Creates a new RadDocument instance.
Declaration
protected override DocumentElement CreateNewElementInstance()
Returns
The new instance.
Overrides
EndStylesUpdate()
Marks the end of styles editing and resumes the updates of the styles.
Declaration
public void EndStylesUpdate()
EnsureDocumentMeasuredAndArranged()
Ensures document layout is performed and layout-boxes have been created.
Declaration
public void EnsureDocumentMeasuredAndArranged()
Remarks
Call this method if the document is created in code and you need to access document's layout boxes.
GetAllBookmarks()
Gets all bookmarks in the document.
Declaration
public IEnumerable<BookmarkRangeStart> GetAllBookmarks()
Returns
IEnumerable<BookmarkRangeStart>
A collection of BookmarkRangeStart objects.
GetAllPermissionInfos()
Gets all PermissionRangeInfos for this document.
Declaration
public IEnumerable<PermissionRangeInfo> GetAllPermissionInfos()
Returns
IEnumerable<PermissionRangeInfo>
A collecction of PermissionRangeInfo objects.
GetAllRevisions()
Gets all revisions.
Declaration
public IEnumerable<Revision> GetAllRevisions()
Returns
GetAnnotationMarkersOfType<T>()
Gets all annotation markers of type T in the document.
Declaration
public IEnumerable<T> GetAnnotationMarkersOfType<T>() where T : AnnotationMarkerBase
Returns
IEnumerable<T>
GetBibliographicSource(string)
Tries to find a Bibliographic Source in the document. Returns null if none is found.
Declaration
public BibliographicSource GetBibliographicSource(string tagName)
Parameters
tagName
The tag name of the Source to be found.
Returns
GetBookmarkByName(string)
Gets a bookmark by its name.
Declaration
public BookmarkRangeStart GetBookmarkByName(string bookmarkName)
Parameters
bookmarkName
The name of the bookmark.
Returns
The BookmarkRangeStart representing the bookmark.
GetCommentRangeStartByComment(Comment)
Gets the CommentRangeStart by comment.
Declaration
public CommentRangeStart GetCommentRangeStartByComment(Comment comment)
Parameters
comment
The comment.
Returns
GetContainingAnnotationRanges<TRangeStart>(HierarchicalIndex, HierarchicalIndex)
Gets the annotation ranges of type TRangeStart surrounding specific positions.
Declaration
public IEnumerable<TRangeStart> GetContainingAnnotationRanges<TRangeStart>(HierarchicalIndex start, HierarchicalIndex end) where TRangeStart : AnnotationRangeStart
Parameters
start
The start.
end
The end.
Returns
IEnumerable<TRangeStart>
GetContainingAnnotationRanges<TRangeStart>(Inline, Predicate<TRangeStart>, bool)
Gets the annotation ranges of type TRangeStart surrounding an inline that match a condition.
Declaration
public IEnumerable<TRangeStart> GetContainingAnnotationRanges<TRangeStart>(Inline inline, Predicate<TRangeStart> filter, bool inclusive = false) where TRangeStart : AnnotationRangeStart
Parameters
inline
The inline.
filter
Predicate<TRangeStart>
The filter.
inclusive
Specifies whether to return the inline itself if it is a TRangeStart.
Returns
IEnumerable<TRangeStart>
GetContainingAnnotationRanges<TRangeStart>(Inline, bool)
Gets the annotation ranges of type TRangeStart surrounding an inline.
Declaration
public IEnumerable<TRangeStart> GetContainingAnnotationRanges<TRangeStart>(Inline inline, bool inclusive = false) where TRangeStart : AnnotationRangeStart
Parameters
inline
The inline.
inclusive
Specifies whether to return the inline itself if it is a TRangeStart.
Returns
IEnumerable<TRangeStart>
GetCurrentPermissions()
Gets the permission ranges included in the Selection. If the Selection is empty, the GetPermissions(Inline) method is invoked with the Inline under the CaretPosition.
Declaration
public IEnumerable<PermissionRangeInfo> GetCurrentPermissions()
Returns
IEnumerable<PermissionRangeInfo>
A collection of PermissionRangeInfo objects.
GetCurrentRevision()
Gets the current revision.
GetLayoutBoxByPosition(PointF)
Gets a layout box that intersects with a position.
GetNextComment()
Gets the next comment.
GetNextRevision()
Gets the next revision.
GetPermissions(Inline)
Gets the permission ranges included in a specified Inline.
Declaration
public IEnumerable<PermissionRangeInfo> GetPermissions(Inline inline)
Parameters
inline
The inline element from which PermissionRangeInfos should be obtained.
Returns
IEnumerable<PermissionRangeInfo>
A collection of PermissionRangeInfos inside the inline.
GetPreviousComment()
Gets the previous comment.
Declaration
public CommentRangeStart GetPreviousComment()
Returns
GetPreviousRevision()
Gets the previous revision.
GetStatisticsInfo()
Gets the statistical information about the document.
Declaration
public DocumentStatisticsInfo GetStatisticsInfo()
Returns
GoToBookmark(BookmarkRangeStart)
Moves the CaretPosition to the beginning of a bookmark.
Declaration
public void GoToBookmark(BookmarkRangeStart bookmarkStart)
Parameters
bookmarkStart
The bookmark start.
GoToBookmark(string)
Moves the CaretPosition to the beginning of a bookmark.
Declaration
public void GoToBookmark(string bookmarkName)
Parameters
bookmarkName
The name of the bookmark.
GoToComment(Comment)
Selects a comment.
Declaration
public void GoToComment(Comment comment)
Parameters
comment
The comment.
GoToComment(CommentRangeStart)
Selects a comment.
Declaration
public void GoToComment(CommentRangeStart commentRangeStart)
Parameters
commentRangeStart
The comment range start.
GoToNextComment()
Selects next comment.
GoToNextEndnote()
Moves current position to the next endnote.
Declaration
public void GoToNextEndnote()
GoToNextFootnote()
Moves current position to the next footnote.
Declaration
public void GoToNextFootnote()
GoToNextRevision()
Selects next revision.
GoToPreviousComment()
Selects previous comment.
Declaration
public CommentRangeStart GoToPreviousComment()
Returns
GoToPreviousEndnote()
Moves current position to the previous endnote.
Declaration
public void GoToPreviousEndnote()
GoToPreviousFootnote()
Moves current position to the previous footnote.
Declaration
public void GoToPreviousFootnote()
GoToPreviousRevision()
Selects previous revision.
GoToRevision(Revision)
Selects revision.
Declaration
public void GoToRevision(Revision revision)
Parameters
revision
The revision.
IsInAnnotationRange<TRangeStart>(Inline, Predicate<TRangeStart>, bool)
Determines whether the specified inline is in annotation range of type TRangeStart that matches a condition.
Declaration
public bool IsInAnnotationRange<TRangeStart>(Inline inline, Predicate<TRangeStart> filter, bool inclusive = false) where TRangeStart : AnnotationRangeStart
Parameters
inline
The inline.
filter
Predicate<TRangeStart>
The filter.
inclusive
Specifies whether to return the inline itself if it is a TRangeStart.
Returns
IsInAnnotationRange<TRangeStart>(Inline, bool)
Determines whether the specified inline is in annotation range of type TRangeStart.
MailMerge(bool)
Mail merges the document using the MailMergeDataSource.
Declaration
public RadDocument MailMerge(bool startEachRecordOnNewPage = true)
Parameters
startEachRecordOnNewPage
A boolean value indicating whether the records should start each on a new page.
Returns
A RadDocument instance representing the result of the merge.
MailMergeCurrentRecord()
Mail merges the document using the current record from the MailMergeDataSource.
Declaration
public RadDocument MailMergeCurrentRecord()
Returns
A RadDocument instance representing the result of the merge.
Measure(SizeF)
Measures the document.
Declaration
public void Measure(SizeF measureSize)
Parameters
measureSize
The size to measure in.
MeasureAndArrangeInDefaultSize()
Forces document layout update, measuring document in MAX_DOCUMENT_SIZE.
Declaration
public void MeasureAndArrangeInDefaultSize()
MergeSpansWithSameStyles()
Merges adjacent spans with same style properties into one.
Declaration
public void MergeSpansWithSameStyles()
Remarks
This method is automatically called when document is measured during the layout process.
Calling it explicitly is generally not needed and may only be useful in case spans are manually added to Paragraph.Inlines collection.
OnDocumentArranged()
Called after arranging the document.
Declaration
protected virtual void OnDocumentArranged()
OnDocumentContentChanged()
Called when document content has been changed.
Declaration
protected virtual void OnDocumentContentChanged()
OnLayoutModeChanged()
Called after changing the LayoutMode. Raises LayoutModeChanged event.
Declaration
protected virtual void OnLayoutModeChanged()
OnMergeFieldToStringConverting(MergeFieldToStringConvertingEventArgs)
Raises the event.
Declaration
protected virtual void OnMergeFieldToStringConverting(MergeFieldToStringConvertingEventArgs e)
Parameters
e
MergeFieldToStringConvertingEventArgs
The MergeFieldToStringConvertingEventArgs instance containing the event data.
OnPresentationChanged(PresentationChangedEventArgs)
Raises the event.
Declaration
protected virtual void OnPresentationChanged(PresentationChangedEventArgs e)
Parameters
e
The PresentationChangedEventArgs instance containing the event data.
OnPresentationChanging()
Called when changing the document presentation.
Declaration
protected virtual void OnPresentationChanging()
OnProtectionSettingsChanged()
Called when the protection settings of the document has been changed.
Declaration
protected virtual void OnProtectionSettingsChanged()
OnRequestCurrentUserInfo(RequestCurrentUserInfoEventArgs)
Raises the event.
Declaration
protected virtual void OnRequestCurrentUserInfo(RequestCurrentUserInfoEventArgs e)
Parameters
e
RequestCurrentUserInfoEventArgs
The RequestCurrentUserInfoEventArgs instance containing the event data.
OnStreamFromUriResolving(StreamFromUriResolvingEventArgs)
Raises the event.
Declaration
protected virtual void OnStreamFromUriResolving(StreamFromUriResolvingEventArgs e)
Parameters
e
StreamFromUriResolvingEventArgs
The StreamFromUriResolvingEventArgs instance containing the event data.
OnStyleChanged()
Called after the style of a document element has been changed.
Declaration
protected override void OnStyleChanged()
Overrides
OnUserAuthenticationRequest(UserAuthenticationRequestEventArgs)
Raises the event.
Declaration
protected virtual void OnUserAuthenticationRequest(UserAuthenticationRequestEventArgs e)
Parameters
e
UserAuthenticationRequestEventArgs
The UserAuthenticationRequestEventArgs instance containing the event data.
ProtectDocument(DocumentProtectionMode, string)
Protects the document.
Declaration
public void ProtectDocument(DocumentProtectionMode protectionMode, string password)
Parameters
protectionMode
The protection mode.
password
The password.
Exceptions
Cannot protect a document that is already protected.
UnprotectDocument(string)
Removes the protection from the document.
Declaration
public bool UnprotectDocument(string password)
Parameters
password
The password.
Returns
Exceptions
Cannot unprotect a document that is not protected.
UpdateLayout()
Forces the document to update its layout.
Declaration
public void UpdateLayout()
UpdateStyles()
Updates the styles inside the document.
Declaration
public void UpdateStyles()
Events
DocumentArranged
Occurs when the document has been arranged.
DocumentContentChanged
Occurs when the document content has changed.
Declaration
public event EventHandler DocumentContentChanged
Event Value
DocumentElementAdded
Occurs when a document element is added in the whole document tree.
Declaration
public event EventHandler<DocumentElementAddedEventArgs> DocumentElementAdded
Event Value
DocumentElementRemoved
Occurs when a document element is removed from the whole document tree.
Declaration
public event EventHandler<DocumentElementRemovedEventArgs> DocumentElementRemoved
Event Value
DocumentVariableEvaluating
Occurs when the result of a document variable is being evaluated.
Declaration
public event EventHandler<DocumentVariableEvaluatingEventArgs> DocumentVariableEvaluating
Event Value
HyperlinkClicked
Occurs when the users clicks on a hyperlink in the current document.
Declaration
public event EventHandler<HyperlinkClickedEventArgs> HyperlinkClicked
Event Value
LayoutModeChanged
Occurs when the LayoutMode property value has changed.
MergeFieldToStringConverting
Occurs when merge field is being converted to string.
Declaration
public event EventHandler<MergeFieldToStringConvertingEventArgs> MergeFieldToStringConverting
Event Value
PresentationChanged
Occurs when document presentation is changed.
Declaration
public event EventHandler<PresentationChangedEventArgs> PresentationChanged
Event Value
PresentationChanging
Occurs when the document presenter is changing.
Declaration
public event EventHandler PresentationChanging
Event Value
ProtectionSettingsChanged
Occurs when the protection settings of the document has been changed.
Declaration
public event EventHandler ProtectionSettingsChanged
Event Value
RequestCurrentUserInfo
Occurs when an information for the current user is needed.
Declaration
public event EventHandler<RequestCurrentUserInfoEventArgs> RequestCurrentUserInfo
Event Value
StreamFromUriResolving
Occurs when trying to create a Stream from a Uri.
Declaration
public event EventHandler<StreamFromUriResolvingEventArgs> StreamFromUriResolving
Event Value
UserAuthenticationRequest
Occurs when a user should be authenticated.
Declaration
public event EventHandler<UserAuthenticationRequestEventArgs> UserAuthenticationRequest
Event Value