Example #1
0
        internal static RtfAttributeInfo GetAttributeInfo(MemberInfo memberInfo)
        {
            foreach (RtfAttributeInfo item in attributeInfoItems)
            {
                if (item.MemberInfo == memberInfo)
                {
                    return(item);
                }
            }

            RtfAttributeInfo info = new RtfAttributeInfo(memberInfo);

            attributeInfoItems.Add(info);

            return(info);
        }
Example #2
0
        private bool FilterHasAttributes(MemberInfo m, object filterCriteria)
        {
            RtfAttributeInfo info = RtfDocumentInfo.GetAttributeInfo(m);

            return(info.HasAttributes);
        }