skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class SpanLayoutBox

Inheritance
System.Object
DisposableObject
RadObject
LayoutElement
LayoutBox
InlineLayoutBox
SpanLayoutBox
FormattingSymbolLayoutBox
Inherited Members
InlineLayoutBox.Remove()
InlineLayoutBox.LineInfo
InlineLayoutBox.LineSegmentInfo
InlineLayoutBox.IsRtl
InlineLayoutBox.AssociatedInline
InlineLayoutBox.IsStartOfLineSegment
LayoutBox.currentY
LayoutBox.AssociatedLayoutBoxProperty
LayoutBox.Node
LayoutBox.GetAssociatedLayoutBox(UIElement)
LayoutBox.SetAssociatedLayoutBox(UIElement, LayoutBox)
LayoutBox.OnElementStructureChanging()
LayoutBox.OnElementStructureChanged()
LayoutBox.CreateChildrenCollection(DocumentStructureCollection)
LayoutBox.InvalidateMeasureUpToTheRoot()
LayoutBox.InvalidateMeasureUpToTheRootStable()
LayoutBox.InvalidateArrangeUpToTheRoot()
LayoutBox.InvalidateLayoutAfterEdit()
LayoutBox.ValidateChild(LayoutBox)
LayoutBox.GetRootDocument()
LayoutBox.CanGrowVerticallyOverride(Single)
LayoutBox.CanGrowVertically(Single)
LayoutBox.GetBoxDesiredGrow()
LayoutBox.CreateNewFragment(LayoutBox)
LayoutBox.InvalidateMeasure()
LayoutBox.IsRemoved
LayoutBox.IsFragment
LayoutBox.AssociatedDocumentElement
LayoutBox.ChildLayoutBoxes
LayoutBox.HasVisualRepresentation
LayoutBox.IsFormattingSymbol
LayoutBox.BoundsChildBoxes
LayoutBox.IsFirstBox
LayoutBox.IsLastBox
LayoutBox.IsFirstChild
LayoutBox.IsLastChild
LayoutBox.IsValidPosition
LayoutBox.Parent
LayoutBox.ChildIndex
LayoutBox.BoundingRectangle
LayoutBox.ElementStructureChanging
LayoutBox.ElementStructureChanged
LayoutElement.EnsureChildrenCreated()
LayoutElement.CreateChildren()
LayoutElement.OnBitStateChanged(DocumentElementStates, Boolean, Boolean)
LayoutElement.SetBitState(DocumentElementStates, Boolean)
LayoutElement.ValidateParent(LayoutElement)
LayoutElement.SetParent(LayoutElement, LayoutElement)
LayoutElement.SetParentCore(LayoutElement)
LayoutElement.IsInValidState(Boolean)
LayoutElement.OnInvalidateMeasure()
LayoutElement.InvalidateMeasure(Boolean)
LayoutElement.InvalidateArrange()
LayoutElement.OnInvalidateArrange()
LayoutElement.InvalidateArrange(Boolean)
LayoutElement.Arrange(RectangleF)
LayoutElement.ArrangeCore(RectangleF)
LayoutElement.ArrangeOverride(SizeF)
LayoutElement.Measure(SizeF)
LayoutElement.MeasureCore(SizeF)
LayoutElement.OnChildDesiredSizeChanged(LayoutElement)
LayoutElement.OnParentChanging()
LayoutElement.OnParentChanged()
LayoutElement.LayoutOffset
LayoutElement.IsTopContainer
LayoutElement.LocalBoundingRectangle
LayoutElement.ControlBoundingRectangle
LayoutElement.ClippedControlBoundingRectangle
LayoutElement.TotalTransform
LayoutElement.Children
LayoutElement.BitState
LayoutElement.DesiredSize
LayoutElement.IsMeasureInProgress
LayoutElement.BypassLayoutPolicies
LayoutElement.MeasureWithoutParentNotification
LayoutElement.Size
LayoutElement.IsArrangeValid
LayoutElement.IsMeasureValid
LayoutElement.TreeLevel
LayoutElement.PreviousArrangeRect
LayoutElement.Alignment
LayoutElement.AutoSize
LayoutElement.Transform
LayoutElement.ParentChanging
LayoutElement.ParentChanged
RadObject.BindingContextProperty
RadObject.RadType
RadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)
RadObject.DisposeManagedResources()
RadObject.ClearPropertyStore()
RadObject.SuspendPropertyNotifications()
RadObject.ResumePropertyNotifications()
RadObject.GetPropertyValue(RadProperty)
RadObject.SetDefaultValueOverride(RadProperty, Object)
RadObject.SetValueAtDesignTime(RadProperty, Object)
RadObject.GetValue(RadProperty)
RadObject.SetValue(RadProperty, Object)
RadObject.ResetValue(RadProperty)
RadObject.ResetLocalValue(RadProperty)
RadObject.ResetValue(RadProperty, ValueResetFlags)
RadObject.UpdateValue(RadProperty)
RadObject.GetValueSource(RadProperty)
RadObject.GetRegisteredRadProperty(String)
RadObject.UpdateValueCore(RadPropertyValue)
RadObject.SetValueCore(RadPropertyValue, Object, Object, ValueSource)
RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags)
RadObject.GetDefaultValue(RadPropertyValue, Object)
RadObject.CoerceValue(RadPropertyValue, Object)
RadObject.ShouldSerializeProperty(PropertyDescriptor)
RadObject.ShouldSerializeProperty(RadProperty)
RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)
RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)
RadObject.UnbindProperty(RadProperty)
RadObject.AddStylePropertySetting(IPropertySetting)
RadObject.RemoveStylePropertySetting(IPropertySetting)
RadObject.RemoveStylePropertySetting(RadProperty)
RadObject.GetInheritedValue(RadProperty)
RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)
RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)
RadObject.OnNotifyPropertyChanged(String)
RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)
RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)
RadObject.IsPropertyCancelable(RadPropertyMetadata)
RadObject.PropertyValues
RadObject.IsDesignMode
RadObject.PropertyFilter
RadObject.RadObjectType
RadObject.BindingContext
RadObject.RadPropertyChanged
RadObject.RadPropertyChanging
RadObject.ShouldSerializePropertyHandler
DisposableObject.GetBitState(Int64)
DisposableObject.SetBitState(Int64, Boolean)
DisposableObject.OnBitStateChanged(Int64, Boolean, Boolean)
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.PerformDispose(Boolean)
DisposableObject.DisposeUnmanagedResources()
DisposableObject.Events
DisposableObject.IsDisposing
DisposableObject.IsDisposed
DisposableObject.Disposed
DisposableObject.Disposing
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinForms.Documents.Layout
Assembly: Telerik.WinControls.RichTextEditor.dll

Syntax

public class SpanLayoutBox : InlineLayoutBox, IDisposable, ICustomTypeDescriptor, INotifyPropertyChanged

Constructors

SpanLayoutBox(DocumentElement, DocumentStructureCollection)

Declaration
public SpanLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection)
Parameters
DocumentElement parentElement

DocumentStructureCollection collection

SpanLayoutBox(DocumentElement, DocumentStructureCollection, Boolean)

Declaration
public SpanLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection, bool isFragment)
Parameters
DocumentElement parentElement

DocumentStructureCollection collection

System.Boolean isFragment

SpanLayoutBox(DocumentElement, DocumentStructureCollection, String)

Declaration
public SpanLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection, string text)
Parameters
DocumentElement parentElement

DocumentStructureCollection collection

System.String text

Properties

AssociatedSpan

Declaration
public Span AssociatedSpan { get; set; }
Property Value
Span

BaselineOffset

Declaration
public override float BaselineOffset { get; }
Property Value
System.Single

Overrides
InlineLayoutBox.BaselineOffset

CanCreateLayoutBoxesFromContent

Declaration
protected override bool CanCreateLayoutBoxesFromContent { get; }
Property Value
System.Boolean

Overrides
LayoutBox.CanCreateLayoutBoxesFromContent

DesiredTextSize

Declaration
public SizeF DesiredTextSize { get; }
Property Value
SizeF

HasWidthAtTheEndOfLine

Declaration
public override bool HasWidthAtTheEndOfLine { get; }
Property Value
System.Boolean

Overrides
InlineLayoutBox.HasWidthAtTheEndOfLine

IsContainerBox

Declaration
public override bool IsContainerBox { get; }
Property Value
System.Boolean

Overrides
InlineLayoutBox.IsContainerBox

IsDecimal

Declaration
public bool IsDecimal { get; set; }
Property Value
System.Boolean

IsParagraphSymbol

Declaration
public bool IsParagraphSymbol { get; }
Property Value
System.Boolean

IsReadonly

Declaration
public override bool IsReadonly { get; }
Property Value
System.Boolean

Overrides
InlineLayoutBox.IsReadonly

IsSplittable

Declaration
public override bool IsSplittable { get; }
Property Value
System.Boolean

Overrides
InlineLayoutBox.IsSplittable

PositionsCountInBox

Declaration
public override int PositionsCountInBox { get; }
Property Value
System.Int32

Overrides
InlineLayoutBox.PositionsCountInBox

Text

Declaration
public override string Text { get; set; }
Property Value
System.String

Overrides
InlineLayoutBox.Text

Methods

ContainsFormattingSymbol(String)

Declaration
public static bool ContainsFormattingSymbol(string text)
Parameters
System.String text

Returns
System.Boolean

CreateLayoutElement()

Declaration
public override LayoutElement CreateLayoutElement()
Returns
LayoutElement

Overrides
LayoutBox.CreateLayoutElement()

CreateNewFragment(Single, Boolean)

Declaration
public override LayoutBox CreateNewFragment(float availableWidth, bool isFirstBoxInLine)
Parameters
System.Single availableWidth

System.Boolean isFirstBoxInLine

Returns
LayoutBox

Overrides
InlineLayoutBox.CreateNewFragment(Single, Boolean)

CreateSpanLayoutBox(DocumentElement, DocumentStructureCollection, String)

Declaration
public static SpanLayoutBox CreateSpanLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection, string text)
Parameters
DocumentElement parentElement

DocumentStructureCollection collection

System.String text

Returns
SpanLayoutBox

GetPositionHandler()

Declaration
public override PositionHandler GetPositionHandler()
Returns
PositionHandler

Overrides
InlineLayoutBox.GetPositionHandler()

InvalidateTextMeasure()

Declaration
public void InvalidateTextMeasure()

IsWordStart()

Declaration
public bool IsWordStart()
Returns
System.Boolean

MeasureOverride(SizeF)

Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
SizeF availableSize

Returns
SizeF

Overrides
LayoutElement.MeasureOverride(SizeF)

MeasureTextOverride(SubStringPosition)

Declaration
protected virtual BoxMeasurementInfo MeasureTextOverride(SubStringPosition subStringPosition = SubStringPosition.None)
Parameters
SubStringPosition subStringPosition

Returns
BoxMeasurementInfo

MergeWithNext(LayoutBox)

Declaration
public override void MergeWithNext(LayoutBox nextSpanBox)
Parameters
LayoutBox nextSpanBox

Overrides
InlineLayoutBox.MergeWithNext(LayoutBox)

OnAssociateDocumentElementChanged()

Declaration
protected override void OnAssociateDocumentElementChanged()
Overrides
LayoutBox.OnAssociateDocumentElementChanged()

OnPropertyChanged(String)

Declaration
protected virtual void OnPropertyChanged(string propName)
Parameters
System.String propName

SplitSpanByIndex(Int32, Boolean)

Declaration
public void SplitSpanByIndex(int splitIndex, bool isBefore)
Parameters
System.Int32 splitIndex

System.Boolean isBefore

ToString()

Declaration
public override string ToString()
Returns
System.String

Overrides
LayoutBox.ToString()

Update(String)

Declaration
public void Update(string text)
Parameters
System.String text

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler

Extension Methods

CommonExtensions.ClearIfNoBindingAndSet(RadObject, RadProperty)
DispatcherExtensions.CheckAccess(RadObject)
CommonExtensions.SetIfDifferent(RadObject, RadProperty, Object)
CommonExtensions.ClearIfSet(RadObject, RadProperty)
CommonExtensions.IsLocalValueSet(RadObject, RadProperty)
DispatcherExtensions.CheckAccess(RadObject)
DispatcherExtensions.CheckAccess(RadObject)
ExtensionMethods.GetCurrentSectionBox(LayoutBox)
DispatcherExtensions.CheckAccess(RadObject)
SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.