Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class WhiteSpace

    Show / Hide Table of Contents

    Class WhiteSpace

    Specifies how the white space and new line characters should be set.

    Inheritance
    System.Object
    WhiteSpace
    Namespace: Syncfusion.Blazor.Diagrams
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class WhiteSpace : Enum
    Examples
    <SfDiagram Height="600px" Nodes="@NodeCollection">
    </SfDiagram>
    @code
    {
       public ObservableCollection<DiagramNode> NodeCollection { get; set; }
       protected override void OnInitialized()
       {
           NodeCollection = new ObservableCollection<DiagramNode>();
           DiagramNode Node = new DiagramNode()
           {
               Width = 100,
               Height = 100,
               OffsetX = 100,
               OffsetY = 100,
               Style = new NodeShapeStyle() { Fill = "#6BA5D7", StrokeColor = "white", WhiteSpace = WhiteSpace.CollapseAll },
               Annotations = new ObservableCollection<DiagramNodeAnnotation>() {
                    new DiagramNodeAnnotation() { Content = "This is a node in diagram component" } }
           };
           NodeCollection.Add(Node);
       }
    }

    Fields

    CollapseAll

    Collapses (Excludes) the consequent spaces into one

    Declaration
    public const WhiteSpace CollapseAll
    Field Value
    Type Description
    WhiteSpace

    CollapseSpace

    Collapses (Excludes) all consequent empty spaces and empty lines

    Declaration
    public const WhiteSpace CollapseSpace
    Field Value
    Type Description
    WhiteSpace

    PreserveAll

    Preserves (Includes) all empty spaces and empty lines

    Declaration
    public const WhiteSpace PreserveAll
    Field Value
    Type Description
    WhiteSpace

    value__

    Declaration
    public int value__
    Field Value
    Type Description
    System.Int32
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved