Copy border color and shd color when duplicating content control
This commit is contained in:
Ilya Kirillov
2025-02-23 18:02:57 +03:00
parent ad89bef3b4
commit e3a3de9022
2 changed files with 12 additions and 0 deletions

View File

@ -1504,6 +1504,12 @@ CBlockLevelSdt.prototype.SetPr = function(oPr)
if (undefined !== oPr.DataBinding)
this.setDataBinding(oPr.DataBinding);
if (oPr.BorderColor)
this.setBorderColor(oPr.BorderColor.Copy());
if (oPr.ShdColor)
this.setShdColor(oPr.ShdColor.Copy());
};
/**
* Выставляем настройки текста по умолчанию для данного контрола

View File

@ -281,6 +281,12 @@ CInlineLevelSdt.prototype.private_CopyPrTo = function(oContentControl, oPr)
if (this.Pr.ComplexFormPr)
oContentControl.SetComplexFormPr(this.Pr.ComplexFormPr);
if (this.Pr.BorderColor)
oContentControl.setBorderColor(this.Pr.BorderColor.Copy());
if (this.Pr.ShdColor)
oContentControl.setShdColor(this.Pr.ShdColor.Copy());
};
CInlineLevelSdt.prototype.GetSelectedContent = function(selectedContent)
{