alexa
Syncfusion
menu Syncfusion

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class DiagramLayoutJsonConverter

    Serializes a DiagramLayout to the EJ2 Diagram LayoutModel JSON shape ({ type, orientation, horizontalSpacing, verticalSpacing, root, fixedNode, margin, horizontalAlignment, verticalAlignment, enableAnimation }) used by both the init payload and window.SfDiagram.updateLayout(). Without this converter, reflection-based serialization emitted PascalCase property names with numeric enums (and MAUI Microsoft.Maui.Thickness internals), which EJ2 silently ignores — layout updates appeared to do nothing (see DiagramManager.UpdateLayoutAsync).

    Inheritance
    object
    JsonConverter
    JsonConverter<DiagramLayout>
    DiagramLayoutJsonConverter
    Inherited Members
    JsonConverter<DiagramLayout>.CanConvert(Type)
    JsonConverter<DiagramLayout>.HandleNull
    JsonConverter<DiagramLayout>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
    JsonConverter<DiagramLayout>.Type
    JsonConverter<DiagramLayout>.WriteAsPropertyName(Utf8JsonWriter, DiagramLayout, JsonSerializerOptions)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Syncfusion.Maui.Diagram
    Assembly: Syncfusion.Maui.Diagram.dll
    Syntax
    public sealed class DiagramLayoutJsonConverter : JsonConverter<DiagramLayout>

    Constructors

    DiagramLayoutJsonConverter()

    Declaration
    public DiagramLayoutJsonConverter()

    Methods

    Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

    Declaration
    public override DiagramLayout Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
    Parameters
    Type Name Description
    Utf8JsonReader reader
    Type typeToConvert
    JsonSerializerOptions options
    Returns
    Type
    DiagramLayout
    Overrides
    JsonConverter<DiagramLayout>.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

    Write(Utf8JsonWriter, DiagramLayout, JsonSerializerOptions)

    Declaration
    public override void Write(Utf8JsonWriter writer, DiagramLayout value, JsonSerializerOptions options)
    Parameters
    Type Name Description
    Utf8JsonWriter writer
    DiagramLayout value
    JsonSerializerOptions options
    Overrides
    JsonConverter<DiagramLayout>.Write(Utf8JsonWriter, DiagramLayout, JsonSerializerOptions)
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved