LayoutFarm.Svg.SvgHitChain.AddHit C# (CSharp) 메소드

AddHit() 공개 메소드

public AddHit ( SvgElement svg, float x, float y ) : void
svg SvgElement
x float
y float
리턴 void
        public void AddHit(SvgElement svg, float x, float y)
        {
            svgList.Add(new SvgHitInfo(svg, x, y));
        }
        public int Count

Usage Example

예제 #1
0
 //------------------------------------------------
 public override bool HitTestCore(SvgHitChain svgChain, float x, float y)
 {
     if (y >= this.ActualY & y < (this.ActualY + this.ActualHeight))
     {
         if (x >= this.ActualX && x < this.ActualX + this.ActualWidth)
         {
             svgChain.AddHit(this, x, y);
             return(true);
         }
     }
     return(false);
 }
All Usage Examples Of LayoutFarm.Svg.SvgHitChain::AddHit