C# Класс Paint.PaintToolBox

Tool box - container for all tools
Наследование: ToolBox, IPaintToolBox
Показать файл Открыть проект

Открытые методы

Метод Описание
PaintToolBox ( ToolboxLayoutDefinition toolboxLayoutDefinition, IGraphicsDisplay graphicsDisplay, int scale ) : System

Initializes a new instance of the Paint.PaintToolBox class.

Защищенные методы

Метод Описание
AddButton ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout ) : void

Creates all the buttons and adds them to our list of controls

OnRedoSelected ( EventArgs e ) : void

Raises the redo selected changed event.

OnUndoSelected ( EventArgs e ) : void

Raises the undo selected changed event.

Приватные методы

Метод Описание
AddRedoButton ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout ) : void

Adds the redo button.

AddUndoButton ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout ) : void

Adds the undo button.

CreateBrushSizeSelector ( Color startColor, ToolboxLayoutDefinitionPaintToolsBrushSizeSelector layoutBrushSizeSelector ) : BrushSizeSelector

Creates the brush size selector.

CreateColorPickers ( ColorSelector colorSelector, ToolboxLayoutDefinitionPaintToolsColorPickersColorPicker layoutColorPickers ) : void

Creates the color pickers.

CreateColorSelector ( Color startColor, ToolboxLayoutDefinitionPaintToolsColorSelector layoutColorSelector ) : ColorSelector

Creates the color selector.

CreateColorSetter ( Color startColor, ToolboxLayoutDefinitionPaintToolsColorSetter layoutColorSetter ) : ColorSetter

Creates the color setter.

CreateTools ( ToolboxLayoutDefinition toolboxLayoutDefinition ) : void

Creates all our tools.

SetBrushSizeRectange ( int brushWidth ) : void

Sets the brush size rectange.

Описание методов

AddButton() защищенный Метод

Creates all the buttons and adds them to our list of controls
protected AddButton ( ToolboxLayoutDefinitionStandardToolsButtonsButton buttonLayout ) : void
buttonLayout Paint.ToolboxLayout.ToolboxLayoutDefinitionStandardToolsButtonsButton
Результат void

OnRedoSelected() защищенный Метод

Raises the redo selected changed event.
protected OnRedoSelected ( EventArgs e ) : void
e System.EventArgs /// Any relevant EventArgs (should be EventArgs.Empty) ///
Результат void

OnUndoSelected() защищенный Метод

Raises the undo selected changed event.
protected OnUndoSelected ( EventArgs e ) : void
e System.EventArgs /// Any relevant EventArgs (should be EventArgs.Empty) ///
Результат void

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

Initializes a new instance of the Paint.PaintToolBox class.
public PaintToolBox ( ToolboxLayoutDefinition toolboxLayoutDefinition, IGraphicsDisplay graphicsDisplay, int scale ) : System
toolboxLayoutDefinition Paint.ToolboxLayout.ToolboxLayoutDefinition
graphicsDisplay IGraphicsDisplay
scale int
Результат System