Interface IStylesheet
Namespace: Umbraco.Cms.Core.Models
Assembly: Umbraco.Core.dll
Syntax
public interface IStylesheet : IFile, IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty
Properties
View SourceProperties
Returns a list of umbraco back office enabled stylesheet properties
Declaration
IEnumerable<IStylesheetProperty>? Properties { get; }
Property Value
Type | Description |
---|---|
System.Nullable<IEnumerable<IStylesheetProperty>> |
Remarks
An umbraco back office enabled stylesheet property has a special prefix, for example: /** umb_name: MyPropertyName */ p { font-size: 1em; }
Methods
View SourceAddProperty(IStylesheetProperty)
Adds an Umbraco stylesheet property for use in the back office
Declaration
void AddProperty(IStylesheetProperty property)
Parameters
Type | Name | Description |
---|---|---|
IStylesheetProperty | property |
RemoveProperty(String)
Removes an Umbraco stylesheet property
Declaration
void RemoveProperty(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name |