Export (0) Print
Expand All

Floater.Floater(Block, TextPointer) Constructor

Initializes a new instance of the Floater class with the specified Block object as its initial content, and a TextPointer that specifies an insertion position for the new Floater.

Namespace: System.Windows.Documents
Assembly: PresentationFramework (in presentationframework.dll)

public Floater (
	Block childBlock,
	TextPointer insertionPosition
public Floater (
	Block childBlock, 
	TextPointer insertionPosition
public function Floater (
	childBlock : Block, 
	insertionPosition : TextPointer
You cannot use constructors in XAML.



The initial content of the new Floater. This parameter can be a null reference (Nothing in Visual Basic), in which case no Block is inserted.


The position at which to insert the Floater element after it is created.

The following example demonstrates how to use this constructor.

Span spanx = new Span();
Paragraph parx = new Paragraph(new Run("Floater content..."));

// This will populate the Floater with the Paragraph parx, and insert
// the Floater at the beginning of the Span spanx.
Floater flotx = new Floater(parx, spanx.ContentStart);

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

© 2014 Microsoft