# ResponsivePropertyAttribute

URL: https://docs.wisej.com/api/wisej.base/responsive/wisej.base.responsivepropertyattribute

Version: 4.1
Namespace: **Wisej.Base**

Assembly: **Wisej.Framework** (4.1.0.0)

Identifies a property as a responsive property. Responsive properties are managed by the ResponsiveProfile class.

- C# - VB.NET

```csharp
public class ResponsivePropertyAttribute : Attribute
```

```visual
Public Class ResponsivePropertyAttribute
    Inherits Attribute
```

## Constructors

### ![Instance member](/img/api/instance.png) ResponsivePropertyAttribute()

Identifies the property as responsive property.

### ![Instance member](/img/api/instance.png) ResponsivePropertyAttribute(enabled)

Enables or disables the responsive property behavior for the property where this attribute is declared.

| Name | Type | Description | **enabled** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | True to enable the responsive behavior; false to disable it. 

### ![Instance member](/img/api/instance.png) ResponsivePropertyAttribute(sourceProperty)

Enables or disables the responsive property behavior for the property where this attribute is declared.

| Name | Type | Description | **sourceProperty** | [String](https://docs.microsoft.com/dotnet/api/system.string) | Name of the property to use to read the raw (not inherited) value, i.e. Visible = VisibleInternal. 

### ![Instance member](/img/api/instance.png) ResponsivePropertyAttribute(enabled, sourceProperty)

Enables or disables the responsive property behavior for the property where this attribute is declared.

| Name | Type | Description | **enabled** | [Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) | True to enable the responsive behavior; false to disable it. | **sourceProperty** | [String](https://docs.microsoft.com/dotnet/api/system.string) | Name of the property to use to read the raw (not inherited) value, i.e. Visible = VisibleInternal. 

## Properties

### ![Instance member](/img/api/instance.png) IsResponsive

[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) : Returns whether the property allows responsive values.

### ![Instance member](/img/api/instance.png) SourceProperty

[String](https://docs.microsoft.com/dotnet/api/system.string) : Returns the name of the property to use to read the raw (not inherited) value.

## Methods

### ![Static member](/img/api/static.png) GetResponsiveAttribute(property)

Returns the [ResponsivePropertyAttribute](/api/wisej.base/responsive/wisej.base.responsivepropertyattribute) attribute associated with property.

| Parameter | Type | Description | **property** | [PropertyDescriptor](https://docs.microsoft.com/dotnet/api/system.componentmodel.propertydescriptor) | Property to check. 

**Returns:**[ResponsivePropertyAttribute](/api/wisej.base/responsive/wisej.base.responsivepropertyattribute) . A [ResponsivePropertyAttribute](/api/wisej.base/responsive/wisej.base.responsivepropertyattribute) or null.

### ![Static member](/img/api/static.png) IsResponsiveProperty(property)

Returns true if the property is marked responsive.

| Parameter | Type | Description | **property** | [PropertyDescriptor](https://docs.microsoft.com/dotnet/api/system.componentmodel.propertydescriptor) | Property to check. 

**Returns:**[Boolean](https://docs.microsoft.com/dotnet/api/system.boolean) . True if the *property* is a responsive property.
