New to Telerik UI for WinForms? Start a free 30-day trial

Maintains the front or back layer for visible floating blocks, selected by their text-wrapping style.

Definition

Constructors

Initializes a floating-block layer that displays content either in front of or behind document text.

C#
public FloatingBlocksUILayer(bool isFrontFloatingBoxesLayer)
Parameters:isFrontFloatingBoxesLayerbool

true to include blocks not wrapped behind text; otherwise, to include blocks wrapped behind text.

Properties

Gets the identifier assigned to this front or back floating-block layer.

C#
public override string Name { get; }

Overrides: ProviderUILayerBase.Name

Methods

Enumerates visible floating-block providers whose wrapping style places them in this layer.

C#
protected override IEnumerable<IUIProvider> EnumerateVisibleProviders()
Returns:

IEnumerable<IUIProvider>

The providers for the visible blocks assigned to this front or back layer.

Overrides: ProviderUILayerBase.EnumerateVisibleProviders()

Gets or creates a provider for a floating image or UI container; WPF builds route floating shapes to a placeholder provider that creates no visual.

C#
protected IUIProvider GetAssociatedUIProvider(FloatingBlockLayoutBox floatingBox)
Parameters:floatingBoxFloatingBlockLayoutBox

The floating-block layout box to represent.

Returns:

IUIProvider

The registered provider associated with the block.

Exceptions: NotImplementedException

The floating block type is not supported by this layer.

Detaches a provider's visual and releases it from the registry associated with its layout element.

C#
protected override void RemoveUIProvider(IUIProvider provider)
Parameters:providerIUIProvider

The provider to remove.

Overrides: ProviderUILayerBase.RemoveUIProvider(IUIProvider)

Updates retained providers, removes stale providers, and adds providers for newly visible blocks.

C#
protected override void UpdateUI()

Overrides: ProviderUILayerBase.UpdateUI()