BrightIdeasSoftware.AnimatedDecoration.Draw C# (CSharp) Метод

Draw() публичный Метод

public Draw ( ObjectListView olv, Graphics g, Rectangle r ) : void
olv ObjectListView
g Graphics
r Rectangle
Результат void
        public override void Draw(ObjectListView olv, Graphics g, Rectangle r) {
            if (!this.Animation.Running)
                return;

            if (this.ModelObject != null) {
                this.ListItem = this.ListView.ModelToItem(this.ModelObject);
                if (this.ListItem == null)
                    return;
                if (this.Column != null) {
                    this.Animation.Bounds = this.ListItem.GetSubItemBounds(this.Column.Index);
                } else 
                    this.Animation.Bounds = this.RowBounds;
            } else {
                this.Animation.Bounds = r;
            } 
            
            this.Animation.Draw(g);
        }