C# Класс Smrf.NodeXL.ExcelTemplate.AutoFillResultsLegendControl

Displays a graph legend containing the results of the autofill feature.
Call Update to specify the autofill results to display in the legend.

Call Clear to clear the legend.

Update sets the control's height to allow the entire legend to fit within the control.

See the WorkbookAutoFiller class for details on the autofill feature.

Наследование: LegendControlBase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
m_iLastResizeWidth System.Int32
m_oAutoFillWorkbookResults AutoFillWorkbookResults

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

Метод Описание
AssertValid ( ) : void
AutoFillResultsLegendControl ( ) : System

Initializes a new instance of the class.

Clear ( ) : void
Update ( AutoFillWorkbookResults autoFillWorkbookResults ) : void

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

Метод Описание
DoubleToString ( Double dDouble, Int32 iDecimalPlaces ) : String
Draw ( DrawingObjects oDrawingObjects ) : Int32
DrawAutoFillWorkbookResults ( DrawingObjects oDrawingObjects ) : Int32
DrawAutoFilledAlphaResults ( DrawingObjects oDrawingObjects, String sSourceColumnName, Double dSourceCalculationNumber1, Double dSourceCalculationNumber2, Int32 iDecimalPlaces, Double dDestinationNumber1, Double dDestinationNumber2, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
DrawAutoFilledEdgeResults ( DrawingObjects oDrawingObjects, Rectangle oColumnRectangle ) : Int32
DrawAutoFilledVertexResults ( DrawingObjects oDrawingObjects, Rectangle oColumnRectangle ) : Int32
DrawColorBarResults ( DrawingObjects oDrawingObjects, String sSourceColumnName, String sCaption, Double dSourceCalculationNumber1, Double dSourceCalculationNumber2, Int32 iDecimalPlaces, Color oColor1, Color oColor2, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
DrawColorBarResults ( DrawingObjects oDrawingObjects, String sSourceColumnName, String sCaption, String sSourceCalculationMinimum, String sSourceCalculationMaximum, Color oColor1, Color oColor2, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
DrawColorCategoryResults ( DrawingObjects oDrawingObjects, ICollection oCategoryNames, GetShapeAndColorForCategory oShapeAndColorGetter, Rectangle oColumnRectangle, Int32 &iTop ) : void
DrawColorColumnResults ( DrawingObjects oDrawingObjects, String sCaption, AutoFillColorColumnResults oColorResults, VertexShape eCategoryShape, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
DrawExcelColumnNameAndCaption ( DrawingObjects oDrawingObjects, String sColumnName, String sCaption, Int32 iLeft, Int32 iRight, Int32 &iTop ) : void
DrawRampResults ( DrawingObjects oDrawingObjects, String sSourceColumnName, String sCaption, Double dSourceCalculationNumber1, Double dSourceCalculationNumber2, Int32 iDecimalPlaces, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
DrawVertexCategoryShape ( DrawingObjects oDrawingObjects, VertexShape eVertexShape, Pen oPen, SolidBrush oBrush, Color oColor, System.Single fXShapeCenter, System.Single fYShapeCenter, System.Single fShapeHalfWidth ) : void
OnPaint ( PaintEventArgs e ) : void
OnResize ( EventArgs e ) : void

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

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

public AssertValid ( ) : void
Результат void

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

Initializes a new instance of the class.
public AutoFillResultsLegendControl ( ) : System
Результат System

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

public Clear ( ) : void
Результат void

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

protected DoubleToString ( Double dDouble, Int32 iDecimalPlaces ) : String
dDouble Double
iDecimalPlaces System.Int32
Результат String

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

protected Draw ( DrawingObjects oDrawingObjects ) : Int32
oDrawingObjects DrawingObjects
Результат System.Int32

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

protected DrawAutoFillWorkbookResults ( DrawingObjects oDrawingObjects ) : Int32
oDrawingObjects DrawingObjects
Результат System.Int32

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

protected DrawAutoFilledAlphaResults ( DrawingObjects oDrawingObjects, String sSourceColumnName, Double dSourceCalculationNumber1, Double dSourceCalculationNumber2, Int32 iDecimalPlaces, Double dDestinationNumber1, Double dDestinationNumber2, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
sSourceColumnName String
dSourceCalculationNumber1 Double
dSourceCalculationNumber2 Double
iDecimalPlaces System.Int32
dDestinationNumber1 Double
dDestinationNumber2 Double
oColumnRectangle System.Drawing.Rectangle
iResultsLeft System.Int32
iResultsRight System.Int32
iTop System.Int32
Результат void

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

protected DrawAutoFilledEdgeResults ( DrawingObjects oDrawingObjects, Rectangle oColumnRectangle ) : Int32
oDrawingObjects DrawingObjects
oColumnRectangle System.Drawing.Rectangle
Результат System.Int32

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

protected DrawAutoFilledVertexResults ( DrawingObjects oDrawingObjects, Rectangle oColumnRectangle ) : Int32
oDrawingObjects DrawingObjects
oColumnRectangle System.Drawing.Rectangle
Результат System.Int32

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

protected DrawColorBarResults ( DrawingObjects oDrawingObjects, String sSourceColumnName, String sCaption, Double dSourceCalculationNumber1, Double dSourceCalculationNumber2, Int32 iDecimalPlaces, Color oColor1, Color oColor2, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
sSourceColumnName String
sCaption String
dSourceCalculationNumber1 Double
dSourceCalculationNumber2 Double
iDecimalPlaces System.Int32
oColor1 Color
oColor2 Color
oColumnRectangle System.Drawing.Rectangle
iResultsLeft System.Int32
iResultsRight System.Int32
iTop System.Int32
Результат void

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

protected DrawColorBarResults ( DrawingObjects oDrawingObjects, String sSourceColumnName, String sCaption, String sSourceCalculationMinimum, String sSourceCalculationMaximum, Color oColor1, Color oColor2, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
sSourceColumnName String
sCaption String
sSourceCalculationMinimum String
sSourceCalculationMaximum String
oColor1 Color
oColor2 Color
oColumnRectangle System.Drawing.Rectangle
iResultsLeft System.Int32
iResultsRight System.Int32
iTop System.Int32
Результат void

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

protected DrawColorCategoryResults ( DrawingObjects oDrawingObjects, ICollection oCategoryNames, GetShapeAndColorForCategory oShapeAndColorGetter, Rectangle oColumnRectangle, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
oCategoryNames ICollection
oShapeAndColorGetter GetShapeAndColorForCategory
oColumnRectangle System.Drawing.Rectangle
iTop System.Int32
Результат void

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

protected DrawColorColumnResults ( DrawingObjects oDrawingObjects, String sCaption, AutoFillColorColumnResults oColorResults, VertexShape eCategoryShape, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
sCaption String
oColorResults AutoFillColorColumnResults
eCategoryShape VertexShape
oColumnRectangle System.Drawing.Rectangle
iResultsLeft System.Int32
iResultsRight System.Int32
iTop System.Int32
Результат void

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

protected DrawExcelColumnNameAndCaption ( DrawingObjects oDrawingObjects, String sColumnName, String sCaption, Int32 iLeft, Int32 iRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
sColumnName String
sCaption String
iLeft System.Int32
iRight System.Int32
iTop System.Int32
Результат void

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

protected DrawRampResults ( DrawingObjects oDrawingObjects, String sSourceColumnName, String sCaption, Double dSourceCalculationNumber1, Double dSourceCalculationNumber2, Int32 iDecimalPlaces, Rectangle oColumnRectangle, Int32 iResultsLeft, Int32 iResultsRight, Int32 &iTop ) : void
oDrawingObjects DrawingObjects
sSourceColumnName String
sCaption String
dSourceCalculationNumber1 Double
dSourceCalculationNumber2 Double
iDecimalPlaces System.Int32
oColumnRectangle System.Drawing.Rectangle
iResultsLeft System.Int32
iResultsRight System.Int32
iTop System.Int32
Результат void

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

protected DrawVertexCategoryShape ( DrawingObjects oDrawingObjects, VertexShape eVertexShape, Pen oPen, SolidBrush oBrush, Color oColor, System.Single fXShapeCenter, System.Single fYShapeCenter, System.Single fShapeHalfWidth ) : void
oDrawingObjects DrawingObjects
eVertexShape VertexShape
oPen System.Drawing.Pen
oBrush System.Drawing.SolidBrush
oColor Color
fXShapeCenter System.Single
fYShapeCenter System.Single
fShapeHalfWidth System.Single
Результат void

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

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Результат void

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

protected OnResize ( EventArgs e ) : void
e System.EventArgs
Результат void

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

public Update ( AutoFillWorkbookResults autoFillWorkbookResults ) : void
autoFillWorkbookResults AutoFillWorkbookResults
Результат void

Описание свойств

m_iLastResizeWidth защищенное свойство

protected Int32,System m_iLastResizeWidth
Результат System.Int32

m_oAutoFillWorkbookResults защищенное свойство

protected AutoFillWorkbookResults,Smrf.NodeXL.ExcelTemplate m_oAutoFillWorkbookResults
Результат AutoFillWorkbookResults