123456789101112131415161718192021222324252627282930313233343536373839 |
- using FastReport.Format;
- using System.Windows.Forms;
- namespace FastReport
- {
- partial class TextObjectBase
- {
- #region Private Methods
- private bool ShouldSerializeBrackets()
- {
- return Brackets != "[,]";
- }
- private bool ShouldSerializePadding()
- {
- return Padding != new Padding(2, 0, 2, 0);
- }
- private bool ShouldSerializeFormat()
- {
- return (formats.Count == 1 && !(formats[0] is GeneralFormat)) || formats.Count > 1;
- }
- #endregion
- #region Public Methods
- /// <inheritdoc/>
- public override void AssignFormat(ReportComponentBase source)
- {
- base.AssignFormat(source);
- TextObjectBase src = source as TextObjectBase;
- if (src == null)
- return;
- Formats.Assign(src.Formats);
- }
- #endregion
- }
- }
|