ASP.NET MVC - EJ2

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramTextStyle - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DiagramTextStyle

    Inheritance
    System.Object
    TagHelper
    EJTagHelper
    DiagramTextStyle
    AnnotationStyleAnnotation
    MethodArgumentsStyleParameters
    NodeStyleNodes
    ShapeAnnotationStyleAnnotations
    UmlClassStyleClassShape
    UmlEnumerationMemberStyleMembers
    UmlEnumerationStyleEnumerationShape
    Inherited Members
    EJTagHelper.GetList()
    EJTagHelper.GetSerializedProperties()
    EJTagHelper.GetScriptString()
    EJTagHelper.GetHtmlAttrString(IDictionary<String, Object>)
    EJTagHelper.TagName
    EJTagHelper.Id
    EJTagHelper.NameSpace
    EJTagHelper.ClassName
    EJTagHelper.IsFor
    EJTagHelper.IsChild
    EJTagHelper.IsCollection
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.EJ2.Diagrams
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class DiagramTextStyle : EJTagHelper

    Constructors

    DiagramTextStyle()

    Declaration
    public DiagramTextStyle()

    Properties

    Bold

    Enables/disables the bold style of text

    Declaration
    [HtmlAttributeName("bold")]
    public bool Bold { get; set; }
    Property Value
    Type Description
    System.Boolean

    Color

    Sets the font color of a text

    Declaration
    [HtmlAttributeName("color")]
    public string Color { get; set; }
    Property Value
    Type Description
    System.String

    ContentTemplate

    To get or set value for ContentTemplate.

    Declaration
    public MvcTemplate<object> ContentTemplate { get; set; }
    Property Value
    Type Description
    MvcTemplate<System.Object>

    Fill

    Sets the fill color of a shape/path

    Declaration
    [HtmlAttributeName("fill")]
    public string Fill { get; set; }
    Property Value
    Type Description
    System.String

    FontFamily

    Sets the font type of a text

    Declaration
    [HtmlAttributeName("fontFamily")]
    public string FontFamily { get; set; }
    Property Value
    Type Description
    System.String

    FontSize

    Defines the font size of a text

    Declaration
    [HtmlAttributeName("fontSize")]
    public double FontSize { get; set; }
    Property Value
    Type Description
    System.Double

    Gradient

    Defines the gradient of a shape/path

    Declaration
    [HtmlAttributeName("gradient")]
    public object Gradient { get; set; }
    Property Value
    Type Description
    System.Object

    IsComplex

    Declaration
    protected override bool IsComplex { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    EJTagHelper.IsComplex

    Italic

    Enables/disables the italic style of text

    Declaration
    [HtmlAttributeName("italic")]
    public bool Italic { get; set; }
    Property Value
    Type Description
    System.Boolean

    Opacity

    Sets the opacity of a shape/path

    Declaration
    [HtmlAttributeName("opacity")]
    public double Opacity { get; set; }
    Property Value
    Type Description
    System.Double

    ParentPropertyName

    Declaration
    protected override string ParentPropertyName { get; }
    Property Value
    Type Description
    System.String
    Overrides
    EJTagHelper.ParentPropertyName

    StrokeColor

    Sets the stroke color of a shape/path

    Declaration
    [HtmlAttributeName("strokeColor")]
    public string StrokeColor { get; set; }
    Property Value
    Type Description
    System.String

    StrokeDashArray

    Defines the pattern of dashes and spaces to stroke the path/shape

    Declaration
    [HtmlAttributeName("strokeDashArray")]
    public string StrokeDashArray { get; set; }
    Property Value
    Type Description
    System.String

    StrokeWidth

    Defines the stroke width of the path/shape

    Declaration
    [HtmlAttributeName("strokeWidth")]
    public double StrokeWidth { get; set; }
    Property Value
    Type Description
    System.Double

    TextAlign

    Defines how the text should be aligned within its bounds Left - Aligns the text at the left of the text bounds Right - Aligns the text at the right of the text bounds Center - Aligns the text at the center of the text bounds Justify - Aligns the text in a justified manner

    Declaration
    [HtmlAttributeName("textAlign")]
    public TextAlign TextAlign { get; set; }
    Property Value
    Type Description
    TextAlign

    TextDecoration

    Defines how the text should be decorated. For example, with underline/over line Overline - Decorates the text with a line above the text Underline - Decorates the text with an underline LineThrough - Decorates the text by striking it with a line None - Text will not have any specific decoration

    Declaration
    [HtmlAttributeName("textDecoration")]
    public TextDecoration TextDecoration { get; set; }
    Property Value
    Type Description
    TextDecoration

    TextOverflow

    Defines how to handle the text when it exceeds the given size. Wrap - Wraps the text to next line, when it exceeds its bounds Ellipsis - It truncates the overflown text and represents the clipping with an ellipsis Clip - It clips the overflow text

    Declaration
    [HtmlAttributeName("textOverflow")]
    public TextOverflow TextOverflow { get; set; }
    Property Value
    Type Description
    TextOverflow

    TextWrapping

    Defines how the text should be wrapped, when the text size exceeds some specific bounds WrapWithOverflow - Wraps the text so that no word is broken Wrap - Wraps the text and breaks the word, if necessary NoWrap - Text will no be wrapped

    Declaration
    [HtmlAttributeName("textWrapping")]
    public TextWrap TextWrapping { get; set; }
    Property Value
    Type Description
    TextWrap

    WhiteSpace

    Defines how the white space and new line characters have to be handled PreserveAll - Preserves all empty spaces and empty lines CollapseSpace - Collapses the consequent spaces into one CollapseAll - Collapses all consequent empty spaces and empty lines

    Declaration
    [HtmlAttributeName("whiteSpace")]
    public WhiteSpace WhiteSpace { get; set; }
    Property Value
    Type Description
    WhiteSpace
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved