## wxPropertyValue

The wxPropertyValue class represents the value of a property, and is normally associated with a wxProperty object.

A wxPropertyValue has one of the following types:

- wxPropertyValueNull
- wxPropertyValueInteger
- wxPropertyValueReal
- wxPropertyValueBool
- wxPropertyValueString
- wxPropertyValueList
- wxPropertyValueIntegerPtr
- wxPropertyValueRealPtr
- wxPropertyValueBoolPtr
- wxPropertyValueStringPtr

Members

wxPropertyValue::wxPropertyValue
wxPropertyValue::~wxPropertyValue
wxPropertyValue::Append
wxPropertyValue::BoolValue
wxPropertyValue::BoolValuePtr
wxPropertyValue::ClearList
wxPropertyValue::Delete
wxPropertyValue::GetFirst
wxPropertyValue::GetLast
wxPropertyValue::GetModified
wxPropertyValue::GetNext
wxPropertyValue::GetStringRepresentation
wxPropertyValue::IntegerValue
wxPropertyValue::Insert
wxPropertyValue::IntegerValuePtr
wxPropertyValue::Nth
wxPropertyValue::Number
wxPropertyValue::RealValue
wxPropertyValue::RealValuePtr
wxPropertyValue::SetModified
wxPropertyValue::StringValue
wxPropertyValue::StringValuePtr
wxPropertyValue::Type
wxPropertyValue::operator =

### wxPropertyValue::wxPropertyValue

void wxPropertyValue()

Default constructor.

void wxPropertyValue(const wxPropertyValue& copyFrom)

Copy constructor.

void wxPropertyValue(char *val)

Construction from a string value.

void wxPropertyValue(long val)

Construction from an integer value. You may need to cast to (long) to avoid confusion with other constructors (such as the bool constructor).

void wxPropertyValue(bool val)

Construction from a boolean value.

void wxPropertyValue(float val)

Construction from a floating point value.

void wxPropertyValue(double val)

Construction from a floating point value.

void wxPropertyValue(wxList * val)

Construction from a list of wxPropertyValue objects. The list, but not each contained wxPropertyValue, will be deleted by the constructor. The wxPropertyValues will be assigned to this wxPropertyValue list. In other words, so do not delete wxList or its data after calling this constructor.

void wxPropertyValue(wxStringList * val)

Construction from a list of strings. The list (including the strings contained in it) will be deleted by the constructor, so do not destroy val explicitly.

void wxPropertyValue(char **val)

Construction from a string pointer.

void wxPropertyValue(long *val)

Construction from an integer pointer.

void wxPropertyValue(bool *val)

Construction from an boolean pointer.

void wxPropertyValue(float *val)

Construction from a floating point pointer.

The last four constructors use pointers to various C++ types, and do not store the types themselves; this allows the values to stand in for actual data values defined elsewhere.

### wxPropertyValue::~wxPropertyValue

void ~wxPropertyValue()

Destructor.

### wxPropertyValue::Append

void Append(wxPropertyValue *expr)

Appends a property value to the list.

### wxPropertyValue::BoolValue

bool BoolValue()

Returns the boolean value.

### wxPropertyValue::BoolValuePtr

bool * BoolValuePtr()

Returns the pointer to the boolean value.

### wxPropertyValue::ClearList

void ClearList()

Deletes the contents of the list.

### wxPropertyValue::Delete

void Delete(wxPropertyValue *expr)

Deletes expr from this list.

### wxPropertyValue::GetFirst

wxPropertyValue * GetFirst()

Gets the first value in the list.

### wxPropertyValue::GetLast

wxPropertyValue * GetFirst()

Gets the last value in the list.

### wxPropertyValue::GetModified

bool GetModified()

Returns TRUE if the value was modified since being created (or since SetModified was called).

### wxPropertyValue::GetNext

wxPropertyValue * GetNext()

Gets the next value in the list (the one after 'this').

### wxPropertyValue::GetStringRepresentation

wxString GetStringRepresentation()

Gets a string representation of the value.

### wxPropertyValue::IntegerValue

long IntegerValue()

Returns the integer value.

### wxPropertyValue::Insert

void Insert(wxPropertyValue *expr)

Inserts a property value at the front of a list.

### wxPropertyValue::IntegerValuePtr

long * IntegerValuePtr()

Returns the pointer to the integer value.

### wxPropertyValue::Nth

wxPropertyValue * Nth(int n)

Returns the nth value of a list expression (starting from zero).

### wxPropertyValue::Number

int Number()

Returns the number of elements in a list expression.

### wxPropertyValue::RealValue

float RealValue()

Returns the floating point value.

### wxPropertyValue::RealValuePtr

float * RealValuePtr()

Returns the pointer to the floating point value.

### wxPropertyValue::SetModified

void SetModified(bool flag)

Sets the 'modified' flag.

### wxPropertyValue::StringValue

char * StringValue()

Returns the string value.

### wxPropertyValue::StringValuePtr

char ** StringValuePtr()

Returns the pointer to the string value.

### wxPropertyValue::Type

wxPropertyValueType Type()

Returns the value type.

### wxPropertyValue::operator =

void operator =(const wxPropertyValue& val)

void operator =(const char *val)

void operator =(const long val)

void operator =(const bool val)

void operator =(const float val)

void operator =(const char **val)

void operator =(const long *val)

void operator =(const bool *val)

void operator =(const float *val)

Assignment operators.