'Declaration Public Sub ToggleCharacterFormatting( _ ByVal span As DocumentSpan, _ ByVal formatType As CharacterFormatType _ )
public void ToggleCharacterFormatting( DocumentSpan span, CharacterFormatType formatType )
If all the text in the specified span currently has the specified format then the format will be removed. If none of the text has the format then all the text will have the format applied to it. If only some of the text has the format currently applied then the format will be removed from any such text and all the text in the span will end up without the format.
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