-
Notifications
You must be signed in to change notification settings - Fork 3
FontSelectDialog
Back to home | Back to Reference | View raw text
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SolidShineUi
SolidShineUi.FontSelectDialog[[FontSelectDialog]]
SolidShineUi.FlatWindow[[FlatWindow]]
end
subgraph System.Windows.Markup
System.Windows.Markup.IComponentConnector[[IComponentConnector]]
end
System.Windows.Markup.IComponentConnector --> SolidShineUi.FontSelectDialog
SolidShineUi.FlatWindow --> SolidShineUi.FontSelectDialog
Type | Name | Methods |
---|---|---|
bool |
DialogResult Get or set the result of the dialog. Set to true if the user clicked OK. |
get, set |
bool |
PreserveFontFallback If a font fallback sequence is defined in the FontFamily, preserve it even if the user changes the font. If preserved, only the first found font will be changed and the remaining values will be preserved. |
get, set |
string |
PreviewText Get or set the preview text displayed at the bottom of the dialog, to allow the user to see how their font selections look. |
get, set |
FontFamily |
SelectedFontFamily Get or set the font family selected in the dialog. |
get, set |
double |
SelectedFontSize Get or set the selected font size in the dialog. |
get, set |
FontStyle |
SelectedFontStyle Get or set the selected font style in the dialog. |
get, set |
FontWeight |
SelectedFontWeight Get or set the selected font weight in the dialog. |
get, set |
TextDecorationCollection |
SelectedTextDecorations Get or set the selected text decorations in the dialog. |
get, set |
bool |
ShowDecorations Get or set if the text decorations section of the dialog is visible. |
get, set |
bool |
ShowSizes Get or set if the font sizes section of the dialog is visible. |
get, set |
bool |
ShowStyles Get or set if the font styles section of the dialog is visible. |
get, set |
bool |
ShowWeights Get or set if the font weights section of the dialog is visible. |
get, set |
Returns | Name |
---|---|
void |
InitializeComponent ()InitializeComponent |
void |
LoadFromControl (... )Load in the selected values of this dialog from a control. |
void |
SetToControl (... )Set a control's font properties to match the selected values of the dialog. |
Returns | Name |
---|---|
Delegate |
_CreateDelegate (Type delegateType, string handler) |
IComponentConnector
-
FlatWindow
public FontSelectDialog()
Create a FontSelectDialog.
public void LoadFromControl(Control element)
Type | Name | Description |
---|---|---|
Control |
element | The control to load from. |
Load in the selected values of this dialog from a control.
If the control is a TextBox, it will also load in the TextDecorations; otherwise, no text decorations are loaded.
public void LoadFromControl(TextBlock element)
Type | Name | Description |
---|---|---|
TextBlock |
element | The TextBlock to load from. |
Load in the selected values of this dialog from a TextBlock control.
public void SetToControl(Control element)
Type | Name | Description |
---|---|---|
Control |
element | The control to set. |
Set a control's font properties to match the selected values of the dialog.
If the control is a TextBox, it will also set the TextDecorations property.
public void SetToControl(TextBlock element)
Type | Name | Description |
---|---|---|
TextBlock |
element | The TextBlock to set. |
Set a TextBlock's font properties to match the selected values of the dialog.
public virtual void InitializeComponent()
InitializeComponent
internal Delegate _CreateDelegate(Type delegateType, string handler)
Type | Name | Description |
---|---|---|
Type |
delegateType | |
string |
handler |
public bool DialogResult { get; set; }
Get or set the result of the dialog. Set to true if the user clicked OK.
public bool PreserveFontFallback { get; set; }
If a font fallback sequence is defined in the FontFamily, preserve it even if the user changes the font. If preserved, only the first found font will be changed and the remaining values will be preserved.
public FontFamily SelectedFontFamily { get; set; }
Get or set the font family selected in the dialog.
public FontWeight SelectedFontWeight { get; set; }
Get or set the selected font weight in the dialog.
public double SelectedFontSize { get; set; }
Get or set the selected font size in the dialog.
public FontStyle SelectedFontStyle { get; set; }
Get or set the selected font style in the dialog.
public TextDecorationCollection SelectedTextDecorations { get; set; }
Get or set the selected text decorations in the dialog.
public bool ShowStyles { get; set; }
Get or set if the font styles section of the dialog is visible.
public bool ShowDecorations { get; set; }
Get or set if the text decorations section of the dialog is visible.
public bool ShowWeights { get; set; }
Get or set if the font weights section of the dialog is visible.
public bool ShowSizes { get; set; }
Get or set if the font sizes section of the dialog is visible.
public string PreviewText { get; set; }
Get or set the preview text displayed at the bottom of the dialog, to allow the user to see how their font selections look.
Generated with ModularDoc