コード例 #1
0
ファイル: DisplayItem.cs プロジェクト: JeffreyZksun/opendraw
        public void AddAttribute(GraphicAttribute attribute)
        {
            if (m_AttributeStack == null)
                m_AttributeStack = new GraphicAttributeStack();

            m_AttributeStack.AddAttribute(attribute);
        }
コード例 #2
0
ファイル: DisplayItem.cs プロジェクト: JeffreyZksun/opendraw
        public void RemoveAttribute(GraphicAttribute attribute)
        {
            if (m_AttributeStack != null)
            {
                m_AttributeStack.RemoveAttribute(attribute);

                // Release the stack if there is no attribute.
                if (m_AttributeStack.Count == 0)
                    m_AttributeStack = null;
            }
        }