CCT.NUI.Visual.BrushSwitcher.GetNext C# (CSharp) 메소드

GetNext() 공개 메소드

public GetNext ( ) : Brush
리턴 System.Drawing.Brush
        public Brush GetNext()
        {
            var result = brushes[currentBrush++];
            if (currentBrush>=brushes.Count)
            {
                currentBrush = 0;
            }
            return result;
        }
    }

Usage Example

예제 #1
0
 public override void Paint(Graphics g)
 {
     g.ScaleTransform(this.zoomFactor, this.zoomFactor);
     var brushSwitcher = new BrushSwitcher();
     foreach (var cluster in this.dataSource.CurrentValue.Clusters)
     {
         this.DrawClusterPoints(cluster, g, brushSwitcher.GetNext());
         this.DrawCenter(cluster, g);
     }
 }
All Usage Examples Of CCT.NUI.Visual.BrushSwitcher::GetNext