Table of Contents

Class GoogleFontEditor

Namespace
Dynamicweb.Content.Items.Editors
Assembly
Dynamicweb.dll

Represents a Google font editor.

[Editor("Google font")]
public class GoogleFontEditor : Editor, IParameterOptions
Inheritance
GoogleFontEditor
Implements
Inherited Members

Constructors

GoogleFontEditor()

Initializes a new instance of an object.

public GoogleFontEditor()

Properties

DataType

Gets the data type for this editor.

public override Type DataType { get; }

Property Value

Type

DefaultFontName

Gets or sets the default font name.

[AddInLabel("Default font name")]
[AddInParameter("DefaultFontName")]
[AddInParameterEditor(typeof(TextEditor), "")]
public string? DefaultFontName { get; set; }

Property Value

string

DefaultFontWeight

Gets or sets the default font weight.

[AddInLabel("Default font weight")]
[AddInParameter("DefaultFontWeight")]
[AddInParameterEditor(typeof(DropDownParameterEditor), "required=True; none=False")]
public string DefaultFontWeight { get; set; }

Property Value

string

Methods

GetParameterOptions(string)

public IEnumerable<ParameterOption> GetParameterOptions(string parameterName)

Parameters

parameterName string

Returns

IEnumerable<ParameterOption>

GetViewModelValue(object?)

Gets the value as an instance of GoogleFontViewModel

public override object? GetViewModelValue(object? value)

Parameters

value object

Returns

object

RenderValue(EditorRenderingContext)

Renders value.

public override void RenderValue(EditorRenderingContext context)

Parameters

context EditorRenderingContext

Editor rendering context.

To top