menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramFlipMode - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DiagramFlipMode

    Specifies the flip behavior options for diagram objects.

    Inheritance
    System.Object
    DiagramFlipMode
    Namespace: Syncfusion.Blazor.Diagram
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public sealed class DiagramFlipMode : Enum
    Remarks

    The DiagramFlipMode enumeration controls which parts of a diagram object are affected when flip operations are performed. This enumeration is applicable only to nodes and node groups.

    This is a flags enumeration, allowing multiple flip modes to be combined using bitwise operations.

    • None - Disables all flip operations
    • LabelOnly - Flips the node along with annotation, excluding its text
    • Text - Flips only the annotation's text, excluding the annotation itself
    • Content - Flips the node along with annotation and its text
    • Port - Enables flip operations for ports
    • PortAndLabelOnly - Flips the node with port and annotation, excluding text
    • PortWithLabelText - Flips the node with port and annotation text, excluding annotation
    • All - Enables flip operations for all components (content, text, and port)
    Examples

    The following example demonstrates how to configure flip mode for a diagram node:

            Node Node = new Node()
            {
                ID = "node1",
                Width = 100,
                Height = 100,
                OffsetX = 100,
                OffsetY = 300,
                Flip=FlipDirection.Horizontal,
                FlipMode=FlipMode.All,
            };

    Fields

    All

    Enables flip operations for diagram object components including content, text, and ports.

    Declaration
    public const DiagramFlipMode All
    Field Value
    Type
    DiagramFlipMode
    Remarks

    This is the most comprehensive flip mode, combining LabelOnly, Port, and Text to ensure all parts of the diagram object are affected by flip operations.

    Content

    Flips the node along with annotation and its text content.

    Declaration
    public const DiagramFlipMode Content
    Field Value
    Type
    DiagramFlipMode
    Remarks

    This is a combination of LabelOnly and Text modes, providing comprehensive flip behavior for all annotation-related elements.

    LabelOnly

    Flips the node along with the annotation, excluding its text.

    Declaration
    public const DiagramFlipMode LabelOnly
    Field Value
    Type
    DiagramFlipMode
    Remarks

    This mode flips the node along with the annotation.

    None

    Disables all the flip operations for the diagram object.

    Declaration
    public const DiagramFlipMode None
    Field Value
    Type
    DiagramFlipMode
    Remarks

    When this value is set, no flip behavior will be applied to any part of the diagram object.

    Port

    Enables flip operations for diagram object ports.

    Declaration
    public const DiagramFlipMode Port
    Field Value
    Type
    DiagramFlipMode
    Remarks

    When this mode is enabled, the ports attached to the diagram object will be flipped along with the flip operation.

    PortAndLabelOnly

    Flips the node along with port and the annotation excluding its text.

    Declaration
    public const DiagramFlipMode PortAndLabelOnly
    Field Value
    Type
    DiagramFlipMode
    Remarks

    This mode combines Port and LabelOnly to flip both ports and annotation containers while preserving text orientation.

    PortWithLabelText

    Flips the node along with the port and the text of the annotation, excluding the annotation itself.

    Declaration
    public const DiagramFlipMode PortWithLabelText
    Field Value
    Type
    DiagramFlipMode
    Remarks

    This mode combines Port and Text to flip ports and text content while maintaining annotation container orientation.

    Text

    Flips the node along with annotation’s text only, excluding the annotation itself.

    Declaration
    public const DiagramFlipMode Text
    Field Value
    Type
    DiagramFlipMode
    Remarks

    This mode allows the text within annotations to be flipped while maintaining the original orientation of the annotation container.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved