C# Class Smrf.NodeXL.Visualization.Wpf.FormattedTextManager

Manages the creation of FormattedText objects.
Call CreateFormattedText(String, Color, Double) to create a FormattedText object. The typeface and font used for creating FormattedText objects can be set using the SetFont method.
Inheritance: VisualizationBase
Mostrar archivo Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Property Type Description
m_dFontSize Double
m_oTypeface System.Windows.Media.Typeface

Public Methods

Method Description
AssertValid ( ) : void
CreateFormattedText ( String text, Color color, Double graphScale ) : System.Windows.Media.FormattedText
CreateFormattedText ( String text, Color color, Double dFontSize, Double graphScale ) : System.Windows.Media.FormattedText
FormattedTextManager ( ) : System

Initializes a new instance of the FormattedTextManager class.

SetFont ( System.Windows.Media.Typeface typeface, Double fontSize ) : void

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

CreateFormattedText() public method

public CreateFormattedText ( String text, Color color, Double graphScale ) : System.Windows.Media.FormattedText
text String
color Color
graphScale Double
return System.Windows.Media.FormattedText

CreateFormattedText() public method

public CreateFormattedText ( String text, Color color, Double dFontSize, Double graphScale ) : System.Windows.Media.FormattedText
text String
color Color
dFontSize Double
graphScale Double
return System.Windows.Media.FormattedText

FormattedTextManager() public method

Initializes a new instance of the FormattedTextManager class.
public FormattedTextManager ( ) : System
return System

SetFont() public method

public SetFont ( System.Windows.Media.Typeface typeface, Double fontSize ) : void
typeface System.Windows.Media.Typeface
fontSize Double
return void

Property Details

m_dFontSize protected_oe property

protected Double m_dFontSize
return Double

m_oTypeface protected_oe property

protected Typeface,System.Windows.Media m_oTypeface
return System.Windows.Media.Typeface