Code Rush Express Template 制作

制作XAF 属性样式模板

1.新建模板

    #PropertyWriteXAF#

          «:#PropertyVarDeclaration#»
          «:#PropertyDefaultScope#»«TypeLink("«?Get(Type)»")» «:#PropertyBody#»

2.继续新建模板

   #PropertyBodyXAF#

      «BlockAnchor»«:#PropertyName#»«Caret»
      {
         «:#PropertyGetter#»
         «:#PropertySetterXAF#»
       }

3.修改模板

       #PropertyReadWrite#

               «:#PropertyVarDeclaration#»
               «:#PropertyDefaultScope#»«TypeLink("«?Get(Type)»")» «:#PropertyBodyXAF#»

4.调回原模板

        修改为

        #PropertyReadWrite#

               «:#PropertyVarDeclaration#»
               «:#PropertyDefaultScope#»«TypeLink("«?Get(Type)»")» «:#PropertyBody#»

原文地址:https://www.cnblogs.com/Tonyyang/p/1590128.html