public Render ( ISvgRenderer renderer ) : void | ||
renderer | ISvgRenderer | |
Résultat | void |
public virtual void RenderChildren(ISvgRenderer renderer) { foreach (XmlNode node in ChildNodes) { SvgElement element = node as SvgElement; if (element != null) { element.Render(renderer); } } }
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; } } }