New to Telerik UI for WinFormsStart a free 30-day trial

Configures how text flows around a shape, including wrapping style and side preferences for floating shapes in document layout.

Definition

Namespace:Telerik.Windows.Documents.Flow.Model.Shapes

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

C#
public class ShapeWrapping

Inheritance: objectShapeWrapping

Constructors

Initializes a new instance of the ShapeWrapping class with default Square wrapping on both sides.

C#
public ShapeWrapping()

Initializes a new instance of the ShapeWrapping class with specified wrapping style and text flow direction.

C#
public ShapeWrapping(ShapeWrappingType wrappingType, TextWrap textWrap)
Parameters:wrappingTypeShapeWrappingType

Type of the wrapping.

textWrapTextWrap

The text wrap.

Properties

Gets or sets which side or sides of the shape text flows around, such as both sides, left only, right only, or the largest side.

C#
public TextWrap TextWrap { get; set; }
Property Value:

The text wrap.

Gets or sets the wrapping mode that determines the shape's bounding area for text flow, such as square, tight, or top-bottom only.

C#
public ShapeWrappingType WrappingType { get; set; }
Property Value:

The type of the wrapping.

Methods

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

True if the specified object is equal to the current object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()