Resets the button array to its default state.

ResetButtonPositions()

public void ResetButtonPositions();
Public Sub ResetButtonPositions()

Examples

The following example demonstrates how to use the 'ResetButtonPositions' method. Here, the 'ButtonPositions' property is reset to its system dependent default value.

TXTextControl.ButtonBar buttonBar1 = new TXTextControl.ButtonBar();
buttonBar1.ReadOnly = false;
buttonBar1.ButtonPositions = new TXTextControl.Button[]{ // in these lines the ButtonPositions are set.
                                 TXTextControl.Button.FontBoldButton,
                                 TXTextControl.Button.FontItalicButton};
buttonBar1.ButtonSeparators = new bool[] { true };
buttonBar1.ButtonOffsets = new int[] { 30 }; 

buttonBar1.ResetButtonPositions(); // here, the ButtonPositions are reset to its default state.