LayoutFarm.Svg.SvgElement.GetFirstNode C# (CSharp) Method

GetFirstNode() public method

public GetFirstNode ( ) : LinkedListNode
return LinkedListNode
        public LinkedListNode<SvgElement> GetFirstNode()
        {
            if (children == null)
            {
                return null;
            }
            else
            {
                return this.children.First;
            }
        }
        public virtual void ReEvaluateComputeValue(ref ReEvaluateArgs args)

Usage Example

 public static void HitTestCore(SvgElement root, SvgHitChain chain, float x, float y)
 {
     //1. 
     chain.AddHit(root, x, y);
     //2. find hit child
     var child = root.GetFirstNode();
     while (child != null)
     {
         var node = child.Value;
         if (node.HitTestCore(chain, x, y))
         {
             break;
         }
         child = child.Next;
     }
 }
All Usage Examples Of LayoutFarm.Svg.SvgElement::GetFirstNode