GetType

function GetType(): TableStyleOverrideType

Description

Returns a type of the current table conditional style.

Returns

TableStyleOverrideType

Try It

var oDocument = Api.GetDocument();
var oTableStyle = oDocument.GetStyle("Bordered");
oTableStyle.SetName("My Custom Style");
var oTable = Api.CreateTable(2, 2);
oTable.SetWidth("percent", 100);
var oTableStylePr = oTableStyle.GetConditionalTableStyle("topLeftCell");
oTable.SetStyle(oTableStyle);
oDocument.Push(oTable);
var sTableStylePrType = oTableStylePr.GetType();
var oParagraph = oDocument.GetElement(0);
oParagraph.AddText("Style type = " + sTableStylePrType);

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).