public void SelectAll() { using (Graphics g = Graphics.FromImage(Layers[SelectionLayerIndex].Image)) { if (!SelectionBounds.IsEmpty) g.SetClip(SelectionBounds); g.Clear(SelectionColor); } OnSelectionChanged("Select All"); }