public void AddAttribute(GraphicAttribute attribute) { if (m_AttributeStack == null) m_AttributeStack = new GraphicAttributeStack(); m_AttributeStack.AddAttribute(attribute); }
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; } }
// This class can't be created protected DisplayItem() { m_AttributeStack = null; }