Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxRichEditCustomViewRepository.GetViewByType(TdxRichEditViewType) Method

Provides access to a stored document view by the specified view type.

#Declaration

Delphi
function GetViewByType(AType: TdxRichEditViewType): TdxRichEditView; virtual;

#Parameters

Name Type
AType TdxRichEditViewType

#Returns

Type
TdxRichEditView

#Remarks

Call this function and pass a view type as the AType parameter to access the corresponding document view. Cast the GetViewByType function result to the target view class to access all view-specific members:

AType Parameter Value Document View Class Description
TdxRichEditType.Simple TdxSimpleView The opened document’s content fills the entire control by width. The control shows no rulers and ignores any page formatting.
TdxRichEditType.Draft TdxDraftView The control shows only content in the document body. All page boundaries, headers, and footers are hidden. Only the horizontal ruler is visible.
TdxRichEditType.PrintLayout TdxPrintLayoutView The control applies page formatting to the opened document. The horizontal and vertical rulers are visible.
See Also