# Class CommentDefinition OptimaJet.Workflow.Core.Model.CommentDefinition Represents a formatted text comment placed on the process scheme canvas in Workflow Designer and stored in [ProcessDefinition.Comments](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ProcessDefinition/). Namespace: [OptimaJet.Workflow.Core.Model](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/) ```csharp public class CommentDefinition : BaseDefinition ``` ## Type Hierarchy - [BaseDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/BaseDefinition/) - CommentDefinition Current type ## Properties `public string Value { get; set; }` Gets or sets the text displayed for the comment on the process scheme canvas in Workflow Designer. `public bool BoldText { get; set; }` Gets or sets a value indicating whether [CommentDefinition.Value](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CommentDefinition/) is rendered in bold. `public bool ItalicText { get; set; }` Gets or sets a value indicating whether [CommentDefinition.Value](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CommentDefinition/) is rendered in italics. `public bool UnderlineText { get; set; }` Gets or sets a value indicating whether [CommentDefinition.Value](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CommentDefinition/) is underlined. `public bool LineThroughText { get; set; }` Gets or sets a value indicating whether [CommentDefinition.Value](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CommentDefinition/) is struck through. `public int FontSize { get; set; }` Gets or sets the font size, in pixels, used to render [CommentDefinition.Value](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CommentDefinition/). `public double Rotation { get; set; }` Gets or sets the rotation angle, in degrees, applied to [CommentDefinition.Value](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CommentDefinition/). `public double Width { get; set; }` Gets or sets the width, in pixels, of the area used to render [CommentDefinition.Value](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CommentDefinition/). `public string Alignment { get; set; }` Gets or sets the horizontal alignment used to render [CommentDefinition.Value](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CommentDefinition/). ## Methods `public CommentDefinition Clone()` Creates a copy of this comment definition. ### Returns | Type | Description | | --- | --- | | `CommentDefinition` | A new [CommentDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CommentDefinition/) with the same comment data and a cloned [BaseDefinition.DesignerSettings](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/BaseDefinition/) value. | ### Exceptions | Type | Description | | --- | --- | | `NullReferenceException` | [BaseDefinition.DesignerSettings](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/BaseDefinition/) is [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null). | [Previous CommandDefinition](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/CommandDefinition/) [Next ConcatenationType](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Model/ConcatenationType/)