当前位置:网站首页>RichView TRVStyle MainRVStyle

RichView TRVStyle MainRVStyle

2022-07-05 01:48:00 lyhoo163

RichView TRVStyle MainRVStyle 

 

      One 、TRVStyle

      stay RichView in ,TRVStyle Is an important part of the Commission , It all fonts 、 The paragraph 、Page Source of style .

      In the use of RichView when , Especially through code creation DOC Document or form , Especially important .

      In addition to the following three attributes :

   (1)TEXTSTYLES- It mainly sets some text styles ;
   (2)PARASTYLES- Paragraph Title Style  
   (3)LISTSTYLES- Paragraph Title Style list      

     TRVStyle There are also two important attributes  MainRVStyle.

      Two 、MainRVStyle 

     1、 function

      It is   A collection of realistic styles , control TextStyles Text attributes and parastyle Paragraph attributes in .
property StyleTemplates : TRVStyleTemplateCollection;

    2、 Use templates
    1、richview Control ,UseStyleTemplates=True;
    2、 Distribute MainRVStyle
    RVStyle.StyleTemplates Back to you MainRVStyle.styletemplates The value set in .

    3、TRVStyle.MainRVStyle
    Define the master for this component TRVStyle Components .
property MainRVStyle: TRVStyle;

     4、 attribute    

      If this MainRVStyle Assigned , This TRVStyle Almost all properties of an object provide a pair of MainRVStyle Access to corresponding attributes .
    The following properties are not affected :
TextStyles
ParaStyles
ListStyles
All events
    This property allows :
Multiple editors can handle the same set of style templates
Simplify the assignment of other attributes ( A set of linked TRVStyle Objects share properties , So assigning a value to any one of them is enough )
    If a TRichView Component is used as header / The footer ( And use the style template ), It must have style.MainRVStyle Specify Style.

srv_icon ScaleRichView Be careful : 
    TSRichViewEdit Provide srve.RichViewEdit.Style = srve.RVHeader.Style.MainRVStyle = srve.RVFooter.Style.MainRVStyle.

      In the new RichView20 Page , Expanded functions , How to use it needs further study ..

原网站

版权声明
本文为[lyhoo163]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207050143052318.html