Пример #1
0
 public void SetMetaData(IPageStyle style, IMetaData metaData)
 {
     foreach (var item in fList)
     {
         ISupportMetaData support = item.PageMaker as ISupportMetaData;
         if (support != null)
         {
             if (support.CanUseMetaData(style))
             {
                 support.SetMetaData(style, metaData);
             }
         }
     }
 }
Пример #2
0
        public static bool CanUseMetaData(object data, IPageStyle style)
        {
            if (data == null)
            {
                return(false);
            }
            TkDebug.AssertArgumentNull(style, "style", null);

            ISupportMetaData supportMeta = data as ISupportMetaData;

            if (supportMeta != null)
            {
                return(supportMeta.CanUseMetaData(style));
            }

            return(false);
        }
Пример #3
0
        public static void SetMetaData(object data, IPageStyle style, IMetaData metaData)
        {
            if (metaData == null || data == null)
            {
                return;
            }
            TkDebug.AssertArgumentNull(style, "style", null);

            ISupportMetaData supportMeta = data as ISupportMetaData;

            if (supportMeta != null)
            {
                bool useIt = supportMeta.CanUseMetaData(style);
                if (useIt)
                {
                    supportMeta.SetMetaData(style, metaData);
                }
            }
        }