Version

SetCharacterSettingsProperty<TValue> Method

Sets character settings property or a sub-property on the text in the specified span.
Syntax
'Declaration
 
Public Sub SetCharacterSettingsProperty(Of TValue)( _
   ByVal span As DocumentSpan, _
   ByVal propertyPath As String, _
   ByVal propertyValue As TValue, _
   ByRef error As String _
) 
public void SetCharacterSettingsProperty<TValue>( 
   DocumentSpan span,
   string propertyPath,
   TValue propertyValue,
   out string error
)

Parameters

span
Text in this span will be affected.
propertyPath
Name of the property of CharacterSettings or a '.' concatenated list of property names definining the path to a sub-property of CharacterSettings.
propertyValue
Value to set. You can specify null to clear the value.
error
This will be set to an error message if an error occurs.

Type Parameters

TValue
Type of the property or the sub-property.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also