Render() public method

public Render ( ISvgRenderer renderer ) : void
renderer ISvgRenderer
return void
Esempio n. 1
0
 public virtual void RenderChildren(ISvgRenderer renderer)
 {
     foreach (XmlNode node in ChildNodes)
     {
         SvgElement element = node as SvgElement;
         if (element != null)
         {
             element.Render(renderer);
         }
     }
 }
Esempio n. 2
0
        public override void RenderChildren(ISvgRenderer renderer)
        {
            // search through all child elements and find one that passes all tests
            foreach (XmlNode node in ChildNodes)
            {
                SvgElement element      = node as SvgElement;
                ISvgTests  testsElement = node as ISvgTests;
                if (element != null && testsElement != null && passesAllTest(testsElement))
                {
                    element.Render(renderer);

                    // make sure we only render the first element that passes
                    break;
                }
            }
        }