C# Class ToolAndControlSampleCS.FontToolControl

Datei anzeigen Open project: Esri/arcobjects-sdk-community-samples

Private Properties

Property Type Description
ArcGISCategoryRegistration void
ArcGISCategoryUnregistration void
DeleteObject bool
ICommand void
ICommand void
IToolControl bool
IToolControl void
InitializeComponent void
OnDocumentSession void
RegisterFunction void
SetUpDocumentEvent void
UnregisterFunction void
cboFont_DrawItem void
cboFont_DropDownClosed void
cboFont_SelectedValueChanged void

Public Methods

Method Description
FontToolControl ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
ArcGISCategoryRegistration ( Type registerType ) : void

Required method for ArcGIS Component Category registration - Do not modify the contents of this method with the code editor.

ArcGISCategoryUnregistration ( Type registerType ) : void

Required method for ArcGIS Component Category unregistration - Do not modify the contents of this method with the code editor.

DeleteObject ( IntPtr hObject ) : bool
ICommand ( ) : void
ICommand ( object hook ) : void
IToolControl ( esriCmdBarType barType ) : bool
IToolControl ( ICompletionNotify complete ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

OnDocumentSession ( ) : void
RegisterFunction ( Type registerType ) : void
SetUpDocumentEvent ( IDocument myDocument ) : void
UnregisterFunction ( Type registerType ) : void
cboFont_DrawItem ( object sender, DrawItemEventArgs e ) : void

Custom drawing when item is selected in the drop down to render the actual font

cboFont_DropDownClosed ( object sender, EventArgs e ) : void
cboFont_SelectedValueChanged ( object sender, EventArgs e ) : void

Optional, wire the cboFont's SelectedValueChanged event if you want to use this tool control to set the default text font of the document

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

FontToolControl() public method

public FontToolControl ( ) : System
return System