예제 #1
0
        internal bool SetInheritedStyle(StyleProperty property)
        {
            if (propertyMap.ContainsKey((int)property.propertyId))
            {
                return(false);
            }

            int           key = BitUtil.SetHighLowBits(1, (int)property.propertyId);
            StyleProperty current;

            if (propertyMap.TryGetValue(key, out current))
            {
                if (current != property)
                {
                    propertyMap[key] = property;
                    return(true);
                }

                return(false);
            }
            else
            {
                propertyMap[key] = property;
                return(true);
            }
        }
예제 #2
0
 public bool HasCharacter(int charPoint)
 {
     return(characterDictionary.ContainsKey(charPoint));
 }