ResponsiveProfileCollection

Wisej.Base.ResponsiveProfileCollection

Namespace: Wisej.Base

Assembly: Wisej.Framework (4.0.0.0)

Collection of responsive profiles.

public class ResponsiveProfileCollection : SynchronizedList<>

Properties

Component

IWisejComponent:

CurrentProfile

ResponsiveProfile: Returns the current profile.

DefaultProfile

ResponsiveProfile: Returns the default profile.

Item(name)

ResponsiveProfile: Returns the ResponsiveProfile identified by the specified name .

Properties

PropertyDescriptorCollection: Returns the PropertyDescriptor for all the responsive properties in the component.

SourceProperties

Dictionary<String, PropertyInfo>:

Methods

Add(profile)

Adds a new ResponsiveProfile to the collection.

Parameter
Type
Description

profile

ResponsiveProfile to add to the collection.

AddRange(profiles)

Adds a list of ResponsiveProfile objects in the collection..

Parameter
Type
Description

profiles

List of ResponsiveProfile objects to add to the collection.

Change(oldName, newName)

Changes the active profile for the owner component. First saves in the old profile the current value for the property that is going to be changed by the new profile, then applies the new value found in the new profile.

Parameter
Type
Description

oldName

Old (current) profile name.

newName

New profile name to load.

Contains(name)

Verifies if the ResponsiveProfile identified by the specified name is present in the collection.

Parameter
Type
Description

name

Name of the ResponsiveProfile to locate in the collection.

Returns: Boolean. True if the collection contains a ResponsiveProfile with the specified name .

Contains(profile)

Checks if the ResponsiveProfile instance is already present in the collection.

Parameter
Type
Description

profile

ResponsiveProfile to find in the collection.

Returns: Boolean.

Create(name)

Creates ore retrieves a ResponsiveProfile using the specified name .

Parameter
Type
Description

name

Name of the ResponsiveProfile to retrieve or to create.

Returns: ResponsiveProfile. Either an existing ResponsiveProfile with the specified name or a newly created ResponsiveProfile with the specified name .

GetDefaultValue(name)

Returns the value of the specified property in the default profile.

Parameter
Type
Description

name

Name of the property to read.

Returns: Object.

Insert(index, profile)

Inserts a ResponsiveProfile instance into the collection at the specified index .

Parameter
Type
Description

index

Position in the collection.

profile

ResponsiveProfile to insert in the collection.

InsertRange(index, profiles)

Inserts a collection of ResponsiveProfile instances into the collection starting at the specified index .

Parameter
Type
Description

index

Position where to insert the profiles of ResponsiveProfile objects.

profiles

Collection of ResponsiveProfile objects to insert in the collection.

LoadProperties(properties)

Loads the responsive properties descriptors.

Parameter
Type
Description

properties

Property list containing responsive properties.

LoadProperties(properties, type)

Loads the responsive properties descriptors.

Parameter
Type
Description

properties

Property list containing responsive properties.

type

Component type. Needed to determine the alternative property getters.

Remove(name)

Removes the ResponsiveProfile with the specified name.

Parameter
Type
Description

name

Name of the ResponsiveProfile to remove from the collection.

ResetDefaultValue(name)

Removes the specified property from the default profile.

Parameter
Type
Description

name

Name of the property to remove.

SetDefaultValue(name, value)

Saves the specified value in the default profile.

Parameter
Type
Description

name

Name of the property to write.

value

Property value to store in the default profile.

ShouldSerializeDefaultValue(name)

Returns true if the specified value in the default profile should be serialized.

Parameter
Type
Description

name

Name of the property to check.

Returns: Boolean.

ShouldSerializeProfile(name)

Returns true if the specified profile contains values that should be serialized.

Parameter
Type
Description

name

Name of the profile to check.

Returns: Boolean.

Last updated

Was this helpful?