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
Afficher le fichier Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Свойство Type Description
m_dFontSize Double
m_oTypeface System.Windows.Media.Typeface

Méthodes publiques

Méthode 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 méthode

public AssertValid ( ) : void
Résultat void

CreateFormattedText() public méthode

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

CreateFormattedText() public méthode

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

FormattedTextManager() public méthode

Initializes a new instance of the FormattedTextManager class.
public FormattedTextManager ( ) : System
Résultat System

SetFont() public méthode

public SetFont ( System.Windows.Media.Typeface typeface, Double fontSize ) : void
typeface System.Windows.Media.Typeface
fontSize Double
Résultat void

Property Details

m_dFontSize protected_oe property

protected Double m_dFontSize
Résultat Double

m_oTypeface protected_oe property

protected Typeface,System.Windows.Media m_oTypeface
Résultat System.Windows.Media.Typeface