I want to set at the same time the Font Color to black, and the Highlight Color to no color.
I have the following code:
public void OnClickToolBar(Syncfusion.Blazor.DocumentEditor.ClickEventArgs args)
{
try
{
if (args.Item.Id == "Blacken")
{
container.GetDocumentEditor().GetSelection().SelectAll();
container.GetDocumentEditor().GetSelection().GetCharacterFormat().SetFontColor("Black");
container.GetDocumentEditor().GetSelection().GetCharacterFormat().SetHighlightColor(HighlightColor.NoColor);
container.GetDocumentEditor().GetSelection().MoveToDocumentStart();
}
}
catch (Exception e)
{
//Traza ERROR
Logger clsLogger = new Logger(148, login, "test");
var resultLog = clsLogger.Excepcion("OnClickToolBar", e);
}
}
The problem is that this code is not setting my text background to no color, what am I doing wrong?