Class GoogleFontEditor
- Namespace
- Dynamicweb.Content.Items.Editors
- Assembly
- Dynamicweb.dll
Represents a Google font editor.
[Editor("Google font")]
public class GoogleFontEditor : Editor
- Inheritance
-
GoogleFontEditor
- Inherited Members
Constructors
GoogleFontEditor()
Initializes a new instance of an object.
public GoogleFontEditor()
Properties
DataType
public override Type DataType { get; }
Property Value
DefaultFontName
Gets or sets the default font name.
[AddInParameter("DefaultFontName")]
[AddInParameterEditor(typeof(HiddenParameterEditor), "")]
public string DefaultFontName { get; set; }
Property Value
DefaultFontWeight
Gets or sets the default font weight.
[AddInParameter("DefaultFontWeight")]
[AddInParameterEditor(typeof(HiddenParameterEditor), "")]
public string DefaultFontWeight { get; set; }
Property Value
FontEditor
[AddInParameter("Default font")]
[AddInParameterEditor(typeof(GoogleFontParameterEditor), "")]
public GoogleFont FontEditor { get; set; }
Property Value
Methods
BeginEdit(EditorContext)
Enables the editor to populate its UI to the client and initiate the editing process.
[Obsolete("Do not use")]
public override void BeginEdit(EditorContext context)
Parameters
contextEditorContext- Editor context.
BeginEditFrontend(EditorContext)
Enables the editor to populate its UI to the client and initiate the editing process (for frontend).
[Obsolete("Do not use")]
public override void BeginEditFrontend(EditorContext context)
Parameters
contextEditorContext- Editor context.
EndEdit()
Returns the edited value.
[Obsolete("Do not use")]
public override object EndEdit()
Returns
- object
- The edited value.
GetViewModelValue(object)
Gets the value as an instance of GoogleFontViewModel
public override object GetViewModelValue(object value)
Parameters
valueobject
Returns
RenderValue(EditorRenderingContext)
Renders value.
public override void RenderValue(EditorRenderingContext context)
Parameters
contextEditorRenderingContext- Editor rendering context.