+void TextView::SetProperty( BaseObject* object, Property::Index index, const Property::Value& value )
+{
+ Toolkit::TextView textView = Toolkit::TextView::DownCast( Dali::BaseHandle( object ) );
+
+ if ( textView && ( index == Toolkit::TextView::PROPERTY_MARKUP_ENABLED ) )
+ {
+ Internal::TextView& textViewImpl( GetImpl( textView ) );
+ bool newValue( value.Get<bool>() );
+ textViewImpl.SetMarkupProcessingEnabled( newValue );
+ if( newValue )
+ {
+ const std::string& currentText( textViewImpl.GetText() );
+ if( ! currentText.empty() )
+ {
+ textViewImpl.SetText( currentText );
+ }
+ }
+ }
+}
+
+Property::Value TextView::GetProperty( BaseObject* object, Property::Index propertyIndex )
+{
+ Toolkit::TextView textView = Toolkit::TextView::DownCast( Dali::BaseHandle( object ) );
+
+ if ( textView && ( propertyIndex == Toolkit::TextView::PROPERTY_MARKUP_ENABLED ) )
+ {
+ return Property::Value( GetImpl( textView ).mMarkUpEnabled );
+ }
+
+ return Property::Value();
+}
+