Class
FilterPartViewModel

Represents the view model for the FilterPart instance.

Definition

Constructors

FilterPartViewModel(object, FilterPartType, int, int, bool)

Initializes a new instance of the FilterPartViewModel class.

Declaration

cs-api-definition
public FilterPartViewModel(object content, FilterPartType type, int index, int level = 1, bool shouldAddMargin = false)

Parameters

content

object

type

FilterPartType

index

int

level

int

shouldAddMargin

bool

Properties

Content

Gets the content of the filter part.

Declaration

cs-api-definition
public object Content { get; set; }

Property Value

object

Level

Gets a value representing the level of this filter part within a CompositeFilterDescriptorCollection hierarchy.

Declaration

cs-api-definition
public int Level { get; set; }

Property Value

int

ShouldAddMargin

Gets a boolean value indicating whether margin should be applied around this filter part.

Declaration

cs-api-definition
public bool ShouldAddMargin { get; set; }

Property Value

bool

Type

Gets the type that this filter part represents.

Declaration

cs-api-definition
public FilterPartType Type { get; set; }

Property Value

FilterPartType

Methods

ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides object.ToString()