Smart Gallery v1.1
 
Loading...
Searching...
No Matches
Property Class Reference

The property of the frame. More...

Public Member Functions

 Property (string name, PropertyType type=PropertyType.String, float weight=0)
 Constructor.
 
 Property (string name, float weight)
 Constructor.
 
override bool Equals (object obj)
 Whether the property is equal to the specified object.
 
override int GetHashCode ()
 Returns the hash code for this instance.
 
override string ToString ()
 Returns a string that represents the current object.
 

Public Attributes

string name
 The name of the property.
 
float weight
 The weight of the property.
 
PropertyType type
 The type of the property.
 

Detailed Description

The property of the frame.

Constructor & Destructor Documentation

◆ Property() [1/2]

Property ( string name,
PropertyType type = PropertyType::String,
float weight = 0 )

Constructor.

Parameters
nameThe name of the property.
typeThe type of the property.
weightThe weight of the property.

◆ Property() [2/2]

Property ( string name,
float weight )

Constructor.

Parameters
nameThe name of the property.
weightThe weight of the property.

Member Function Documentation

◆ Equals()

override bool Equals ( object obj)

Whether the property is equal to the specified object.

Parameters
objThe object to compare.
Returns
True if the property is equal to the specified object.

◆ GetHashCode()

override int GetHashCode ( )

Returns the hash code for this instance.

Returns
The hash code.

◆ ToString()

override string ToString ( )

Returns a string that represents the current object.

Returns
A string that represents the current object.