Will now replace hard spaces with spaces (was putting in a ?)
Will now replace each hard return with a space
This commit is contained in:
parent
d40cc470c3
commit
cca53e5d79
@ -96,6 +96,8 @@ namespace Volian.Controls.Library
|
|||||||
txbWrdText.Text = _WordApp.Selection.Text.Substring(0, idx);
|
txbWrdText.Text = _WordApp.Selection.Text.Substring(0, idx);
|
||||||
else
|
else
|
||||||
txbWrdText.Text = _WordApp.Selection.Text;
|
txbWrdText.Text = _WordApp.Selection.Text;
|
||||||
|
txbWrdText.Text = txbWrdText.Text.Replace('\xA0', ' '); // replace hard space with regular space
|
||||||
|
txbWrdText.Text = txbWrdText.Text.Replace('\x0B', ' '); // replace hard return with regular space
|
||||||
txvStyle.Text = _WordApp.Selection.Style.NameLocal;
|
txvStyle.Text = _WordApp.Selection.Style.NameLocal;
|
||||||
txbLevel.Text = _WordApp.Selection.Style.ListLevelNumber.ToString();
|
txbLevel.Text = _WordApp.Selection.Style.ListLevelNumber.ToString();
|
||||||
//_WordApp.Selection.Copy();
|
//_WordApp.Selection.Copy();
|
||||||
@ -116,6 +118,9 @@ namespace Volian.Controls.Library
|
|||||||
txbWrdText.Text = _WordApp.Selection.Text.Substring(0, idx);
|
txbWrdText.Text = _WordApp.Selection.Text.Substring(0, idx);
|
||||||
else
|
else
|
||||||
txbWrdText.Text = _WordApp.Selection.Text;
|
txbWrdText.Text = _WordApp.Selection.Text;
|
||||||
|
txbWrdText.Text = txbWrdText.Text.Replace('\xA0', ' '); // replace hard space with regular space
|
||||||
|
txbWrdText.Text = txbWrdText.Text.Replace('\x0B', ' '); // replace hard return with regular space
|
||||||
|
|
||||||
txvStyle.Text = _WordApp.Selection.Style.NameLocal;
|
txvStyle.Text = _WordApp.Selection.Style.NameLocal;
|
||||||
txbLevel.Text = _WordApp.Selection.Style.ListLevelNumber.ToString();
|
txbLevel.Text = _WordApp.Selection.Style.ListLevelNumber.ToString();
|
||||||
//_WordApp.Selection.Copy();
|
//_WordApp.Selection.Copy();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user