C# Class Smrf.NodeXL.ExcelTemplate.GraphImageUserSettingsDialog

Edits a GraphImageUserSettings object.
Pass a GraphImageUserSettings object to the constructor. If the user edits the object, Form.ShowDialog() returns DialogResult.OK. Otherwise, the object is not modified and returns DialogResult.Cancel.
Inheritance: ExcelTemplateForm
ファイルを表示 Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Property Type Description
m_bCalculatingHeightOrWidth System.Boolean
m_oGraphImageUserSettings GraphImageUserSettings
m_oGraphImageUserSettingsDialogUserSettings GraphImageUserSettingsDialogUserSettings
m_oHeaderFooterFont System.Drawing.Font
m_oNodeXLControlSizePx System.Drawing.Size

Public Methods

Method Description
AssertValid ( ) : void
GraphImageUserSettingsDialog ( GraphImageUserSettings graphImageUserSettings, Size nodeXLControlSizePx ) : System

Initializes a new instance of the class.

Protected Methods

Method Description
CalculateWidthOrHeight ( System.Boolean bCalculateWidth ) : void
Dispose ( bool disposing ) : void

Clean up any resources being used.

DoDataExchange ( System.Boolean bFromControls ) : System.Boolean
EnableControls ( ) : void
ValidateHeight ( Int32 &iHeight ) : System.Boolean
ValidateWidth ( Int32 &iWidth ) : System.Boolean

Private Methods

Method Description
InitializeComponent ( ) : void

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

OnEventThatRequiresControlEnabling ( object sender, EventArgs e ) : void
OnWidthOrHeightValueChanged ( object sender, EventArgs e ) : void
btnHeaderFooterFont_Click ( object sender, EventArgs e ) : void
btnOK_Click ( object sender, System e ) : void
chkPreserveAspectRatio_CheckedChanged ( object sender, EventArgs e ) : void

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

CalculateWidthOrHeight() protected method

protected CalculateWidthOrHeight ( System.Boolean bCalculateWidth ) : void
bCalculateWidth System.Boolean
return void

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

DoDataExchange() protected method

protected DoDataExchange ( System.Boolean bFromControls ) : System.Boolean
bFromControls System.Boolean
return System.Boolean

EnableControls() protected method

protected EnableControls ( ) : void
return void

GraphImageUserSettingsDialog() public method

Initializes a new instance of the class.
public GraphImageUserSettingsDialog ( GraphImageUserSettings graphImageUserSettings, Size nodeXLControlSizePx ) : System
graphImageUserSettings GraphImageUserSettings /// The object being edited. ///
nodeXLControlSizePx System.Drawing.Size /// The size of the NodeXLControl, in pixels. ///
return System

ValidateHeight() protected method

protected ValidateHeight ( Int32 &iHeight ) : System.Boolean
iHeight System.Int32
return System.Boolean

ValidateWidth() protected method

protected ValidateWidth ( Int32 &iWidth ) : System.Boolean
iWidth System.Int32
return System.Boolean

Property Details

m_bCalculatingHeightOrWidth protected_oe property

protected Boolean,System m_bCalculatingHeightOrWidth
return System.Boolean

m_oGraphImageUserSettings protected_oe property

protected GraphImageUserSettings,Smrf.NodeXL.ExcelTemplate m_oGraphImageUserSettings
return GraphImageUserSettings

m_oGraphImageUserSettingsDialogUserSettings protected_oe property

protected GraphImageUserSettingsDialogUserSettings,Smrf.NodeXL.ExcelTemplate m_oGraphImageUserSettingsDialogUserSettings
return GraphImageUserSettingsDialogUserSettings

m_oHeaderFooterFont protected_oe property

protected Font,System.Drawing m_oHeaderFooterFont
return System.Drawing.Font

m_oNodeXLControlSizePx protected_oe property

protected Size,System.Drawing m_oNodeXLControlSizePx
return System.Drawing.Size