New to Telerik UI for WinFormsStart a free 30-day trial

Represents the document object in RadRichTextBox.

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class RadDocument : DocumentElement, IDisposable, ICustomTypeDescriptor, ISupportInitialize, INotifyPropertyChanged

Inheritance: objectDisposableObjectRadObjectDocumentElementRadDocument

Implements: ICustomTypeDescriptorIDisposableINotifyPropertyChangedISupportInitialize

Inherited Members DocumentElement.GetStyleProperty(IStylePropertyDefinition)DocumentElement.GetStyleProperty(string)DocumentElement.EnumerateChildrenOfType<T>()DocumentElement.GetParentOfType<T>()DocumentElement.CreateLayoutBox()DocumentElement.CopyPropertiesFrom(DocumentElement)DocumentElement.CopyPropertiesFromStyle(StyleDefinition)DocumentElement.ExtractStyleFromProperties()DocumentElement.ExtractStyleFromLocalProperties()DocumentElement.InvalidateAssociatedBoxesArrange()DocumentElement.InvalidateAssociatedBoxesMeasure()DocumentElement.InvalidateAssociatedBoxesLayout()DocumentElement.GetAssociatedLayoutBoxes()DocumentElement.GetRootDocument()DocumentElement.CreateShallowCopy()DocumentElement.GetPropertyValueSource(IStylePropertyDefinition)DocumentElement.ClearValue(IStylePropertyDefinition)DocumentElement.OnRemoved()DocumentElement.OnStyleChanging()DocumentElement.OnStylePropertyChanged(StylePropertyChangeEventArgs)DocumentElement.OnParentChanging()DocumentElement.OnParentChanged()DocumentElement.ChildIndexDocumentElement.HasStyleDocumentElement.StyleDocumentElement.StyleNameDocumentElement.TagDocumentElement.FirstLayoutBoxDocumentElement.IsFirstLayoutBoxInitializedDocumentElement.DocumentElementsDocumentElement.ParentDocumentElement.ChildrenDocumentElement.PreviousSiblingDocumentElement.NextSiblingDocumentElement.CursorDocumentElement.StyleChangingDocumentElement.StyleChangedDocumentElement.StylePropertyChangedDocumentElement.ParentChangingDocumentElement.ParentChangedDocumentElement.PropertyValueChangedRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.DisposeManagedResources()RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(RadProperty, object)RadObject.GetValue(RadProperty)RadObject.SetValue(RadProperty, object)RadObject.ResetValue(RadProperty)RadObject.ResetLocalValue(RadProperty)RadObject.ResetValue(RadProperty, ValueResetFlags)RadObject.UpdateValue(RadProperty)RadObject.GetValueSource(RadProperty)RadObject.GetRegisteredRadProperty(string)RadObject.UpdateValueCore(RadPropertyValue)RadObject.SetValueCore(RadPropertyValue, object, object, ValueSource)RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)RadObject.GetDefaultValue(RadPropertyValue, object)RadObject.CoerceValue(RadPropertyValue, object)RadObject.ShouldSerializeProperty(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.AddStylePropertySetting(IPropertySetting)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing...

Constructors

Initializes a new instance of the RadDocument class.

C#
public RadDocument()

Fields

The default tab width style property.

C#
public static readonly StylePropertyDefinition<double?, DocumentProperties> DefaultTabWidthProperty

The endnotes first number style property.

C#
public static readonly StylePropertyDefinition<int?, DocumentProperties> EndnotesFirstNumberProperty

The endnotes numbering format style property.

C#
public static readonly StylePropertyDefinition<ListNumberingFormat?, DocumentProperties> EndnotesNumberingFormatProperty

The endnotes numbering restart type style property.

C#
public static readonly StylePropertyDefinition<NumberingRestartType?, DocumentProperties> EndnotesNumberingRestartTypeProperty

The endnotes position style property.

C#
public static readonly StylePropertyDefinition<EndnotesPosition?, DocumentProperties> EndnotesPositionProperty

The footnotes first number style property.

C#
public static readonly StylePropertyDefinition<int?, DocumentProperties> FootnotesFirstNumberProperty

The footnotes numbering format style property.

C#
public static readonly StylePropertyDefinition<ListNumberingFormat?, DocumentProperties> FootnotesNumberingFormatProperty

The footnotes numbering restart type style property.

C#
public static readonly StylePropertyDefinition<NumberingRestartType?, DocumentProperties> FootnotesNumberingRestartTypeProperty

The footnotes position style property.

C#
public static readonly StylePropertyDefinition<FootnotesPosition?, DocumentProperties> FootnotesPositionProperty

Represent the maximum document size.

C#
public static readonly SizeF MAX_DOCUMENT_SIZE

The section default page margin style property.

C#
public static readonly StylePropertyDefinition<Padding?, DocumentProperties> SectionDefaultPageMarginProperty

The section default page orientation style property.

C#
public static readonly StylePropertyDefinition<PageOrientation?, DocumentProperties> SectionDefaultPageOrientationProperty

The section default page size style property.

C#
public static readonly StylePropertyDefinition<Size?, DocumentProperties> SectionDefaultPageSizeProperty

Properties

Gets or sets a collection of BibliographicSource objects.

C#
[XamlCompositePropertySerializable]
public NotifiableCollection<BibliographicSource> BibliographicSources { get; set; }

Gets or sets a dictionary keeping the styles used for the bibliographic references inside the document.

C#
public Dictionary<string, BibliographicReferenceStyleBase> BibliographicStyles { get; set; }

Gets the caption definitions inside the document.

C#
public Dictionary<string, CaptionDefinition> CaptionDefinitions { get; }
Property Value:

The caption definitions.

Gets a DocumentPosition representing the current caret position.

C#
public DocumentPosition CaretPosition { get; }
Property Value:

The current position of the caret.

Gets or sets the formatter used for code blocks.

C#
public CodeFormatter CodeFormatter { get; set; }
Property Value:

The code formatter.

Gets or sets the default tab width.

C#
[XamlSerializable]
public double DefaultTabWidth { get; set; }

Gets a value representing the desired layout size of the document.

C#
public SizeF DesiredSize { get; }
Property Value:

A SizeF representing the desired size.

Gets or sets a value determining how often to fire the DocumentContentChanged event.

C#
public TimeSpan DocumentContentChangedInterval { get; set; }

Gets a value representing the layout box of the document.

C#
public DocumentLayoutBox DocumentLayoutBox { get; }
Property Value:

The DocumentLayoutBox.

Gets the document variables.

C#
public DocumentVariableCollection DocumentVariables { get; }
Property Value:

The document variables.

Gets or sets the endnotes starting number.

C#
[XamlSerializable(1)]
public int EndnotesFirstNumber { get; set; }

Gets or sets the endnotes numbering format.

C#
[XamlSerializable(ListNumberingFormat.LowerRoman)]
public ListNumberingFormat EndnotesNumberingFormat { get; set; }

Gets or sets the type of the endnotes numbering restart.

C#
[XamlSerializable(NumberingRestartType.Continuous)]
public NumberingRestartType EndnotesNumberingRestartType { get; set; }

Gets or sets the endnotes position.

C#
[XamlSerializable(EndnotesPosition.DocumentEnd)]
public EndnotesPosition EndnotesPosition { get; set; }

Gets or sets the display mode for the fields in this document.

C#
public FieldDisplayMode FieldsDisplayMode { get; set; }
Property Value:

The fields display mode.

Gets or sets the footnotes starting number.

C#
[XamlSerializable(1)]
public int FootnotesFirstNumber { get; set; }

Gets or sets the footnotes numbering format.

C#
[XamlSerializable(ListNumberingFormat.Decimal)]
public ListNumberingFormat FootnotesNumberingFormat { get; set; }

Gets or sets the type of the footnotes numbering restart.

C#
[XamlSerializable(NumberingRestartType.Continuous)]
public NumberingRestartType FootnotesNumberingRestartType { get; set; }

Gets or sets the footnotes position.

C#
[XamlSerializable(FootnotesPosition.PageBottom)]
public FootnotesPosition FootnotesPosition { get; set; }

Gets or sets a value indicating whether headers and footers are different in even and odd pages.

C#
[XamlSerializable(false)]
public bool HasDifferentEvenAndOddHeadersFooters { get; set; }
Property Value:

true if headers and footers are different in even and odd pages; otherwise, false.

Gets the history of changes in this document.

C#
public DocumentHistory History { get; }

Gets a value indicating whether the document is empty.

C#
public bool IsEmpty { get; }
Property Value:

true if the document is empty; otherwise, false.

Gets or sets a value indicating whether the strict line breaking rule will be applied to Japanese text in this document.

C#
[XamlSerializable(false)]
public bool IsStrictLineBreakingRuleEnabled { get; set; }

Gets or sets a value indicating whether this instance has track changes enabled.

C#
[XamlSerializable(false)]
public bool IsTrackChangesEnabled { get; set; }
Property Value:

true if this instance is track changes enabled; otherwise, false.

Gets or sets a value representing the current layout mode.

C#
[XamlSerializable]
public DocumentLayoutMode LayoutMode { get; set; }
Property Value:

The layout mode.

Gets or sets the language which rules should be used for line breaking in the paragraphs.

C#
public LineBreakingRuleLanguage LineBreakingRuleLanguage { get; set; }
Property Value:

The line breaking rule language.

Gets or set the line spacing of this document.

C#
[XamlSerializable]
public double LineSpacing { get; set; }

Gets or set the line spacing type of this document.

C#
[XamlSerializable]
public LineSpacingType LineSpacingType { get; set; }

Gets the list manager.

C#
public ListManager ListManager { get; }
Property Value:

The ListManager instance responsible for this document.

Gets the data source used for mail merge operations with this document.

C#
public MailMergeDataSource MailMergeDataSource { get; }
Property Value:

The mail merge data source.

Gets or sets a rule determining which characters cannot end a line in East-Asian languages.

C#
[XamlCompositePropertySerializable]
public LineBreakingRule NoLineBreaksAfterRule { get; set; }

Gets or sets a rule determining which characters cannot start a line in East-Asian languages.

C#
[XamlCompositePropertySerializable]
public LineBreakingRule NoLineBreaksBeforeRule { get; set; }

Gets or sets the default spacing after a paragraph.

C#
[XamlSerializable]
public double ParagraphDefaultSpacingAfter { get; set; }

Gets or sets the default spacing before a paragraph.

C#
[XamlSerializable]
public double ParagraphDefaultSpacingBefore { get; set; }

Gets or sets the protection settings.

C#
[XamlCompositePropertySerializable]
public DocumentProtectionSettings ProtectionSettings { get; set; }
Property Value:

The protection settings.

Gets or sets the default section page margin.

C#
[XamlSerializable]
public Padding SectionDefaultPageMargin { get; set; }

Gets or sets the default section page orientation

C#
[XamlSerializable]
public PageOrientation SectionDefaultPageOrientation { get; set; }

Gets or sets the default section page size.

C#
[XamlSerializable]
public Size SectionDefaultPageSize { get; set; }

Gets a collection with the sections of the document.

C#
public SectionCollection Sections { get; }
Property Value:

A SectionCollection representing the sections of the document.

Gets or sets the selected bibliographic style.

C#
public BibliographicReferenceStyleBase SelectedBibliographicStyle { get; set; }
Property Value:

The selected bibliographic style.

Gets a DocumentSelection representing the document selection.

C#
public DocumentSelection Selection { get; }
Property Value:

The document selection.

Gets or sets a value indicating whether to show bookmarks.

C#
public bool ShowBookmarks { get; set; }
Property Value:

true if the bookmarks should be visualized; otherwise, false.

Gets or sets a value indicating whether to show formatting symbols.

C#
public bool ShowFormattingSymbols { get; set; }
Property Value:

true if the formatting symbols should be visualized; otherwise, false.

Gets or sets a value indicating whether the merge fields in the document should have a highlight.

C#
public bool ShowMergeFieldsHighlight { get; set; }
Property Value:

true if the merge fields should be highlighted; otherwise, false.

Gets or sets a value indicating whether the read only ranges in the document should have a highlight.

C#
public bool ShowReadOnlyRangesHighlight { get; set; }
Property Value:

true if the read only ranges should be highlighted; otherwise, false.

Gets a value indicating whether a structure change is in progress.

C#
public bool StructureChangeInProgress { get; }
Property Value:

true if the the structure of the document is currently being changed; otherwise, false.

Gets the collection of styles inside the document.

C#
public StyleCollection StyleRepository { get; }
Property Value:

The style repository.

Methods

Adds a custom list style to the document.

C#
public ListStyle AddCustomListStyle(ListStyle listStyle)
Parameters:listStyleListStyle

The list style.

Returns:

ListStyle

The inserted ListStyle instance.

Arranges the document.

C#
public void Arrange(RectangleF arrangeRect)
Parameters:arrangeRectRectangleF

The rectangle to arrange in.

Marks the start of styles editing and temporarily suspends the updates of the styles.

C#
public void BeginStylesUpdate()

Calls the DocumentContentChanged event.

C#
protected void CallOnDocumentContentChanged()

Determines whether this instance can be unprotected using the specified password.

C#
public bool CanUnprotectDocument(string password)
Parameters:passwordstring

The password.

Returns:

bool

true if this instance is protected and can be unprotected using the specified password; otherwise, false.

Determines whether the document contains annotation markers of type T.

C#
public bool ContainsAnnotationMarkersOfType<T>() where T : AnnotationMarkerBase
Returns:

bool

Copies the properties from another RadDocument to the current instance.

C#
protected override void CopyPropertiesFromOverride(DocumentElement element)
Parameters:elementDocumentElement

The RadDocument to copy the properties from.

Overrides: DocumentElement.CopyPropertiesFromOverride(DocumentElement)

Creates a deep copy of the document.

C#
public override DocumentElement CreateDeepCopy()
Returns:

DocumentElement

The copied element.

Overrides: DocumentElement.CreateDeepCopy()

Creates a DocumentLayoutBox for the element.

C#
public override LayoutBox CreateLayoutBox(DocumentStructureCollection documentCollection)
Parameters:documentCollectionDocumentStructureCollection

The document collection.

Returns:

LayoutBox

Thew new DocumentLayoutBox.

Overrides: DocumentElement.CreateLayoutBox(DocumentStructureCollection)

Creates a new RadDocument instance.

C#
protected override DocumentElement CreateNewElementInstance()
Returns:

DocumentElement

The new instance.

Overrides: DocumentElement.CreateNewElementInstance()

Marks the end of styles editing and resumes the updates of the styles.

C#
public void EndStylesUpdate()

Ensures document layout is performed and layout-boxes have been created.

C#
public void EnsureDocumentMeasuredAndArranged()
Remarks:

Call this method if the document is created in code and you need to access document's layout boxes.

Gets all bookmarks in the document.

C#
public IEnumerable<BookmarkRangeStart> GetAllBookmarks()
Returns:

IEnumerable<BookmarkRangeStart>

A collection of BookmarkRangeStart objects.

Gets all PermissionRangeInfos for this document.

C#
public IEnumerable<PermissionRangeInfo> GetAllPermissionInfos()
Returns:

IEnumerable<PermissionRangeInfo>

A collecction of PermissionRangeInfo objects.

Gets all revisions.

C#
public IEnumerable<Revision> GetAllRevisions()
Returns:

IEnumerable<Revision>

Gets all annotation markers of type T in the document.

C#
public IEnumerable<T> GetAnnotationMarkersOfType<T>() where T : AnnotationMarkerBase
Returns:

IEnumerable<T>

Tries to find a Bibliographic Source in the document. Returns null if none is found.

C#
public BibliographicSource GetBibliographicSource(string tagName)
Parameters:tagNamestring

The tag name of the Source to be found.

Returns:

BibliographicSource

Gets a bookmark by its name.

C#
public BookmarkRangeStart GetBookmarkByName(string bookmarkName)
Parameters:bookmarkNamestring

The name of the bookmark.

Returns:

BookmarkRangeStart

The BookmarkRangeStart representing the bookmark.

Gets the CommentRangeStart by comment.

C#
public CommentRangeStart GetCommentRangeStartByComment(Comment comment)
Parameters:commentComment

The comment.

Returns:

CommentRangeStart

Gets the annotation ranges of type TRangeStart surrounding specific positions.

C#
public IEnumerable<TRangeStart> GetContainingAnnotationRanges<TRangeStart>(HierarchicalIndex start, HierarchicalIndex end) where TRangeStart : AnnotationRangeStart
Parameters:startHierarchicalIndex

The start.

endHierarchicalIndex

The end.

Returns:

IEnumerable<TRangeStart>

Gets the annotation ranges of type TRangeStart surrounding an inline.

C#
public IEnumerable<TRangeStart> GetContainingAnnotationRanges<TRangeStart>(Inline inline, bool inclusive = false) where TRangeStart : AnnotationRangeStart
Parameters:inlineInline

The inline.

inclusivebool

Specifies whether to return the inline itself if it is a TRangeStart.

Returns:

IEnumerable<TRangeStart>

Gets the annotation ranges of type TRangeStart surrounding an inline that match a condition.

C#
public IEnumerable<TRangeStart> GetContainingAnnotationRanges<TRangeStart>(Inline inline, Predicate<TRangeStart> filter, bool inclusive = false) where TRangeStart : AnnotationRangeStart
Parameters:inlineInline

The inline.

filterPredicate<TRangeStart>

The filter.

inclusivebool

Specifies whether to return the inline itself if it is a TRangeStart.

Returns:

IEnumerable<TRangeStart>

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.

C#
public IEnumerable<PermissionRangeInfo> GetCurrentPermissions()
Returns:

IEnumerable<PermissionRangeInfo>

A collection of PermissionRangeInfo objects.

Gets the current revision.

C#
public Revision GetCurrentRevision()
Returns:

Revision

Gets a layout box that intersects with a position.

C#
public LayoutBox GetLayoutBoxByPosition(PointF position)
Parameters:positionPointF

The position to intersect with.

Returns:

LayoutBox

Gets the next comment.

C#
public CommentRangeStart GetNextComment()
Returns:

CommentRangeStart

Gets the next revision.

C#
public Revision GetNextRevision()
Returns:

Revision

Gets the permission ranges included in a specified Inline.

C#
public IEnumerable<PermissionRangeInfo> GetPermissions(Inline inline)
Parameters:inlineInline

The inline element from which PermissionRangeInfos should be obtained.

Returns:

IEnumerable<PermissionRangeInfo>

A collection of PermissionRangeInfos inside the inline.

Gets the previous comment.

C#
public CommentRangeStart GetPreviousComment()
Returns:

CommentRangeStart

Gets the previous revision.

C#
public Revision GetPreviousRevision()
Returns:

Revision

Gets the statistical information about the document.

C#
public DocumentStatisticsInfo GetStatisticsInfo()
Returns:

DocumentStatisticsInfo

Moves the CaretPosition to the beginning of a bookmark.

C#
public void GoToBookmark(BookmarkRangeStart bookmarkStart)
Parameters:bookmarkStartBookmarkRangeStart

The bookmark start.

Moves the CaretPosition to the beginning of a bookmark.

C#
public void GoToBookmark(string bookmarkName)
Parameters:bookmarkNamestring

The name of the bookmark.

Selects a comment.

C#
public void GoToComment(Comment comment)
Parameters:commentComment

The comment.

Selects a comment.

C#
public void GoToComment(CommentRangeStart commentRangeStart)
Parameters:commentRangeStartCommentRangeStart

The comment range start.

Selects next comment.

C#
public CommentRangeStart GoToNextComment()
Returns:

CommentRangeStart

Moves current position to the next endnote.

C#
public void GoToNextEndnote()

Moves current position to the next footnote.

C#
public void GoToNextFootnote()

Selects next revision.

C#
public Revision GoToNextRevision()
Returns:

Revision

Selects previous comment.

C#
public CommentRangeStart GoToPreviousComment()
Returns:

CommentRangeStart

Moves current position to the previous endnote.

C#
public void GoToPreviousEndnote()

Moves current position to the previous footnote.

C#
public void GoToPreviousFootnote()

Selects previous revision.

C#
public Revision GoToPreviousRevision()
Returns:

Revision

Selects revision.

C#
public void GoToRevision(Revision revision)
Parameters:revisionRevision

The revision.

Determines whether the specified inline is in annotation range of type TRangeStart.

C#
public bool IsInAnnotationRange<TRangeStart>(Inline inline, bool inclusive = false) where TRangeStart : AnnotationRangeStart
Parameters:inlineInline

The inline.

inclusivebool

Specifies whether to return the inline itself if it is a TRangeStart.

Returns:

bool

Determines whether the specified inline is in annotation range of type TRangeStart that matches a condition.

C#
public bool IsInAnnotationRange<TRangeStart>(Inline inline, Predicate<TRangeStart> filter, bool inclusive = false) where TRangeStart : AnnotationRangeStart
Parameters:inlineInline

The inline.

filterPredicate<TRangeStart>

The filter.

inclusivebool

Specifies whether to return the inline itself if it is a TRangeStart.

Returns:

bool

Mail merges the document using the MailMergeDataSource.

C#
public RadDocument MailMerge(bool startEachRecordOnNewPage = true)
Parameters:startEachRecordOnNewPagebool

A boolean value indicating whether the records should start each on a new page.

Returns:

RadDocument

A RadDocument instance representing the result of the merge.

Mail merges the document using the current record from the MailMergeDataSource.

C#
public RadDocument MailMergeCurrentRecord()
Returns:

RadDocument

A RadDocument instance representing the result of the merge.

Measures the document.

C#
public void Measure(SizeF measureSize)
Parameters:measureSizeSizeF

The size to measure in.

Forces document layout update, measuring document in MAX_DOCUMENT_SIZE.

C#
public void MeasureAndArrangeInDefaultSize()

Merges adjacent spans with same style properties into one.

C#
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.

Called after arranging the document.

C#
protected virtual void OnDocumentArranged()

Called when document content has been changed.

C#
protected virtual void OnDocumentContentChanged()

Called after changing the LayoutMode. Raises LayoutModeChanged event.

C#
protected virtual void OnLayoutModeChanged()

Raises the event.

C#
protected virtual void OnMergeFieldToStringConverting(MergeFieldToStringConvertingEventArgs e)
Parameters:eMergeFieldToStringConvertingEventArgs

The MergeFieldToStringConvertingEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnPresentationChanged(PresentationChangedEventArgs e)
Parameters:ePresentationChangedEventArgs

The PresentationChangedEventArgs instance containing the event data.

Called when changing the document presentation.

C#
protected virtual void OnPresentationChanging()

Called when the protection settings of the document has been changed.

C#
protected virtual void OnProtectionSettingsChanged()

Raises the event.

C#
protected virtual void OnRequestCurrentUserInfo(RequestCurrentUserInfoEventArgs e)
Parameters:eRequestCurrentUserInfoEventArgs

The RequestCurrentUserInfoEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnStreamFromUriResolving(StreamFromUriResolvingEventArgs e)
Parameters:eStreamFromUriResolvingEventArgs

The StreamFromUriResolvingEventArgs instance containing the event data.

Called after the style of a document element has been changed.

C#
protected override void OnStyleChanged()

Overrides: DocumentElement.OnStyleChanged()

Raises the event.

C#
protected virtual void OnUserAuthenticationRequest(UserAuthenticationRequestEventArgs e)
Parameters:eUserAuthenticationRequestEventArgs

The UserAuthenticationRequestEventArgs instance containing the event data.

Protects the document.

C#
public void ProtectDocument(DocumentProtectionMode protectionMode, string password)
Parameters:protectionModeDocumentProtectionMode

The protection mode.

passwordstring

The password.

Exceptions:

InvalidOperationException

Cannot protect a document that is already protected.

Removes the protection from the document.

C#
public bool UnprotectDocument(string password)
Parameters:passwordstring

The password.

Returns:

bool

Exceptions:

InvalidOperationException

Cannot unprotect a document that is not protected.

Forces the document to update its layout.

C#
public void UpdateLayout()

Updates the styles inside the document.

C#
public void UpdateStyles()

Events

C#
public event EventHandler<DocumentCommandExecutedEventArgs> CommandExecuted

Occurs when the document has been arranged.

C#
public event EventHandler DocumentArranged

Occurs when the document content has changed.

C#
public event EventHandler DocumentContentChanged

Occurs when a document element is added in the whole document tree.

C#
public event EventHandler<DocumentElementAddedEventArgs> DocumentElementAdded

Occurs when a document element is removed from the whole document tree.

C#
public event EventHandler<DocumentElementRemovedEventArgs> DocumentElementRemoved

Occurs when the result of a document variable is being evaluated.

C#
public event EventHandler<DocumentVariableEvaluatingEventArgs> DocumentVariableEvaluating

Occurs when the users clicks on a hyperlink in the current document.

C#
public event EventHandler<HyperlinkClickedEventArgs> HyperlinkClicked

Occurs when the LayoutMode property value has changed.

C#
public event EventHandler LayoutModeChanged

Occurs when merge field is being converted to string.

C#
public event EventHandler<MergeFieldToStringConvertingEventArgs> MergeFieldToStringConverting

Occurs when document presentation is changed.

C#
public event EventHandler<PresentationChangedEventArgs> PresentationChanged

Occurs when the document presenter is changing.

C#
public event EventHandler PresentationChanging

Occurs when the protection settings of the document has been changed.

C#
public event EventHandler ProtectionSettingsChanged

Occurs when an information for the current user is needed.

C#
public event EventHandler<RequestCurrentUserInfoEventArgs> RequestCurrentUserInfo

Occurs when trying to create a Stream from a Uri.

C#
public event EventHandler<StreamFromUriResolvingEventArgs> StreamFromUriResolving

Occurs when a user should be authenticated.

C#
public event EventHandler<UserAuthenticationRequestEventArgs> UserAuthenticationRequest
In this article
DefinitionConstructorsRadDocument()FieldsDefaultTabWidthPropertyEndnotesFirstNumberPropertyEndnotesNumberingFormatPropertyEndnotesNumberingRestartTypePropertyEndnotesPositionPropertyFootnotesFirstNumberPropertyFootnotesNumberingFormatPropertyFootnotesNumberingRestartTypePropertyFootnotesPositionPropertyMAX_DOCUMENT_SIZESectionDefaultPageMarginPropertySectionDefaultPageOrientationPropertySectionDefaultPageSizePropertyPropertiesBibliographicSourcesBibliographicStylesCaptionDefinitionsCaretPositionCodeFormatterDefaultTabWidthDesiredSizeDocumentContentChangedIntervalDocumentLayoutBoxDocumentVariablesEndnotesFirstNumberEndnotesNumberingFormatEndnotesNumberingRestartTypeEndnotesPositionFieldsDisplayModeFootnotesFirstNumberFootnotesNumberingFormatFootnotesNumberingRestartTypeFootnotesPositionHasDifferentEvenAndOddHeadersFootersHistoryIsEmptyIsStrictLineBreakingRuleEnabledIsTrackChangesEnabledLayoutModeLineBreakingRuleLanguageLineSpacingLineSpacingTypeListManagerMailMergeDataSourceNoLineBreaksAfterRuleNoLineBreaksBeforeRuleParagraphDefaultSpacingAfterParagraphDefaultSpacingBeforeProtectionSettingsSectionDefaultPageMarginSectionDefaultPageOrientationSectionDefaultPageSizeSectionsSelectedBibliographicStyleSelectionShowBookmarksShowFormattingSymbolsShowMergeFieldsHighlightShowReadOnlyRangesHighlightStructureChangeInProgressStyleRepositoryMethodsAddCustomListStyle(ListStyle)Arrange(RectangleF)BeginStylesUpdate()CallOnDocumentContentChanged()CanUnprotectDocument(string)ContainsAnnotationMarkersOfType<T>()CopyPropertiesFromOverride(DocumentElement)CreateDeepCopy()CreateLayoutBox(DocumentStructureCollection)CreateNewElementInstance()EndStylesUpdate()EnsureDocumentMeasuredAndArranged()GetAllBookmarks()GetAllPermissionInfos()GetAllRevisions()GetAnnotationMarkersOfType<T>()GetBibliographicSource(string)GetBookmarkByName(string)GetCommentRangeStartByComment(Comment)GetContainingAnnotationRanges<TRangeStart>(HierarchicalIndex, HierarchicalIndex)GetContainingAnnotationRanges<TRangeStart>(Inline, bool)GetContainingAnnotationRanges<TRangeStart>(Inline, Predicate<TRangeStart>, bool)GetCurrentPermissions()GetCurrentRevision()GetLayoutBoxByPosition(PointF)GetNextComment()GetNextRevision()GetPermissions(Inline)GetPreviousComment()GetPreviousRevision()GetStatisticsInfo()GoToBookmark(BookmarkRangeStart)GoToBookmark(string)GoToComment(Comment)GoToComment(CommentRangeStart)GoToNextComment()GoToNextEndnote()GoToNextFootnote()GoToNextRevision()GoToPreviousComment()GoToPreviousEndnote()GoToPreviousFootnote()GoToPreviousRevision()GoToRevision(Revision)IsInAnnotationRange<TRangeStart>(Inline, bool)IsInAnnotationRange<TRangeStart>(Inline, Predicate<TRangeStart>, bool)MailMerge(bool)MailMergeCurrentRecord()Measure(SizeF)MeasureAndArrangeInDefaultSize()MergeSpansWithSameStyles()OnDocumentArranged()OnDocumentContentChanged()OnLayoutModeChanged()OnMergeFieldToStringConverting(MergeFieldToStringConvertingEventArgs)OnPresentationChanged(PresentationChangedEventArgs)OnPresentationChanging()OnProtectionSettingsChanged()OnRequestCurrentUserInfo(RequestCurrentUserInfoEventArgs)OnStreamFromUriResolving(StreamFromUriResolvingEventArgs)OnStyleChanged()OnUserAuthenticationRequest(UserAuthenticationRequestEventArgs)ProtectDocument(DocumentProtectionMode, string)UnprotectDocument(string)UpdateLayout()UpdateStyles()EventsCommandExecutedDocumentArrangedDocumentContentChangedDocumentElementAddedDocumentElementRemovedDocumentVariableEvaluatingHyperlinkClickedLayoutModeChangedMergeFieldToStringConvertingPresentationChangedPresentationChangingProtectionSettingsChangedRequestCurrentUserInfoStreamFromUriResolvingUserAuthenticationRequest
Not finding the help you need?
Contact Support