TX Text Control .NET for WPF

ImageInsertionMode Enumeration

Enumeration
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.

Description

Determines how an Image can be inserted in the text. The enumeration contains the following values:

Syntax

[Flags]
public enum ImageInsertionMode

Members

MemberValueDescription
AsCharacter1The image is inserted in the text as a single character.
DisplaceCompleteLines4The image is inserted at a certain geometrical location. The text stops at the top and continues at the bottom of the image.
DisplaceText8The image is inserted at a certain geometrical location. The text flows around the image and empty areas at the left and right side are filled.
AboveTheText524290The image is inserted at a certain geometrical location above the text. This means that the image overwrites the text.
BelowTheText262146The image is inserted at a certain geometrical location below the text. This means that the text overwrites the image.
MoveWithText65536The image is anchored to a paragraph and moved with the text. This member cannot be used with the ImageCollection.Add methods.
FixedOnPage131072The image is fixed positioned on a page. This member cannot be used with the ImageCollection.Add methods.

Examples

The following example selects the As Character value from the Image Insertion Mode enumeration and uses it as a documented workflow choice.

ImageInsertionMode value = ImageInsertionMode.AsCharacter;
Console.WriteLine($"Using Image Insertion Mode: {value}");

See Also

ImageCollection.Add Methods, Image.InsertionMode Property.

Further Reading

  • Inserting Background Images into TX Text Control –
  • Advantages of the TX Text Control API over MS Word Automation –