Class
SpanLayoutBox

Definition

Namespace:Telerik.WinForms.Documents.Layout

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

cs-api-definition
public class SpanLayoutBox : InlineLayoutBox, IDisposable, ICustomTypeDescriptor, INotifyPropertyChanged

Inheritance: objectDisposableObjectRadObjectLayoutElementLayoutBoxInlineLayoutBoxSpanLayoutBox

Derived Classes: FormattingSymbolLayoutBox

Implements: ICustomTypeDescriptorIDisposableINotifyPropertyChanged

Inherited Members InlineLayoutBox.Remove()InlineLayoutBox.LineInfoInlineLayoutBox.LineSegmentInfoInlineLayoutBox.IsRtlInlineLayoutBox.AssociatedInlineInlineLayoutBox.IsStartOfLineSegmentLayoutBox.currentYLayoutBox.AssociatedLayoutBoxPropertyLayoutBox.NodeLayoutBox.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(float)LayoutBox.CanGrowVertically(float)LayoutBox.GetBoxDesiredGrow()LayoutBox.CreateNewFragment(LayoutBox)LayoutBox.InvalidateMeasure()LayoutBox.IsRemovedLayoutBox.IsFragmentLayoutBox.AssociatedDocumentElementLayoutBox.ChildLayoutBoxesLayoutBox.HasVisualRepresentationLayoutBox.IsFormattingSymbolLayoutBox.BoundsChildBoxesLayoutBox.IsFirstBoxLayoutBox.IsLastBoxLayoutBox.IsFirstChildLayoutBox.IsLastChildLayoutBox.IsValidPositionLayoutBox.ParentLayoutBox.ChildIndexLayoutBox.BoundingRectangleLayoutBox.ElementStructureChangingLayoutBox.ElementStructureChangedLayoutElement.EnsureChildrenCreated()LayoutElement.CreateChildren()LayoutElement.OnBitStateChanged(DocumentElementStates, bool, bool)LayoutElement.SetBitState(DocumentElementStates, bool)LayoutElement.ValidateParent(LayoutElement)LayoutElement.SetParent(LayoutElement, LayoutElement)LayoutElement.SetParentCore(LayoutElement)LayoutElement.IsInValidState(bool)LayoutElement.OnInvalidateMeasure()LayoutElement.InvalidateMeasure(bool)LayoutElement.InvalidateArrange()LayoutElement.OnInvalidateArrange()LayoutElement.InvalidateArrange(bool)LayoutElement.Arrange(RectangleF)LayoutElement.ArrangeCore(RectangleF)LayoutElement.ArrangeOverride(SizeF)LayoutElement.Measure(SizeF)LayoutElement.MeasureCore(SizeF)LayoutElement.OnChildDesiredSizeChanged(LayoutElement)LayoutElement.OnParentChanging()LayoutElement.OnParentChanged()LayoutElement.LayoutOffsetLayoutElement.IsTopContainerLayoutElement.LocalBoundingRectangleLayoutElement.ControlBoundingRectangleLayoutElement.ClippedControlBoundingRectangleLayoutElement.TotalTransformLayoutElement.ChildrenLayoutElement.BitStateLayoutElement.DesiredSizeLayoutElement.IsMeasureInProgressLayoutElement.BypassLayoutPoliciesLayoutElement.MeasureWithoutParentNotificationLayoutElement.SizeLayoutElement.IsArrangeValidLayoutElement.IsMeasureValidLayoutElement.TreeLevelLayoutElement.PreviousArrangeRectLayoutElement.AlignmentLayoutElement.AutoSizeLayoutElement.TransformLayoutElement.ParentChangingLayoutElement.ParentChangedRadObject.BindingContextPropertyRadObject.RadTypeRadObject.ReplaceDefaultDescriptors(PropertyDescriptorCollection)RadObject.DisposeManagedResources()RadObject.ClearPropertyStore()RadObject.SuspendPropertyNotifications()RadObject.ResumePropertyNotifications()RadObject.GetPropertyValue(RadProperty)RadObject.SetDefaultValueOverride(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(RadProperty)RadObject.CanRaisePropertyChangeNotifications(RadPropertyValue)RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions)RadObject.UnbindProperty(RadProperty)RadObject.AddStylePropertySetting(IPropertySetting)RadObject.GetInheritedValue(RadProperty)RadObject.OnPropertyChanging(RadPropertyChangingEventArgs)RadObject.OnPropertyChanged(RadPropertyChangedEventArgs)RadObject.OnNotifyPropertyChanged(string)RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs)RadObject.IsPropertyCancelable(RadPropertyMetadata)RadObject.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.OnBitStateChanged(long, bool, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.PerformDispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing

Constructors

SpanLayoutBox(DocumentElement, DocumentStructureCollection)

Declaration

cs-api-definition
public SpanLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection)

Parameters

parentElement

DocumentElement

collection

DocumentStructureCollection

SpanLayoutBox(DocumentElement, DocumentStructureCollection, bool)

Declaration

cs-api-definition
public SpanLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection, bool isFragment)

Parameters

parentElement

DocumentElement

collection

DocumentStructureCollection

isFragment

bool

SpanLayoutBox(DocumentElement, DocumentStructureCollection, string)

Declaration

cs-api-definition
public SpanLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection, string text)

Parameters

parentElement

DocumentElement

collection

DocumentStructureCollection

text

string

Properties

AssociatedSpan

Declaration

cs-api-definition
public Span AssociatedSpan { get; set; }

Property Value

Span

BaselineOffset

Declaration

cs-api-definition
public override float BaselineOffset { get; }

Property Value

float

Overrides InlineLayoutBox.BaselineOffset

CanCreateLayoutBoxesFromContent

Declaration

cs-api-definition
protected override bool CanCreateLayoutBoxesFromContent { get; }

Property Value

bool

Overrides LayoutBox.CanCreateLayoutBoxesFromContent

DesiredTextSize

Declaration

cs-api-definition
public SizeF DesiredTextSize { get; }

Property Value

SizeF

HasWidthAtTheEndOfLine

Declaration

cs-api-definition
public override bool HasWidthAtTheEndOfLine { get; }

Property Value

bool

Overrides InlineLayoutBox.HasWidthAtTheEndOfLine

IsContainerBox

Declaration

cs-api-definition
public override bool IsContainerBox { get; }

Property Value

bool

Overrides InlineLayoutBox.IsContainerBox

IsDecimal

Declaration

cs-api-definition
public bool IsDecimal { get; set; }

Property Value

bool

IsParagraphSymbol

Declaration

cs-api-definition
public bool IsParagraphSymbol { get; }

Property Value

bool

IsReadonly

Declaration

cs-api-definition
public override bool IsReadonly { get; }

Property Value

bool

Overrides InlineLayoutBox.IsReadonly

IsSplittable

Declaration

cs-api-definition
public override bool IsSplittable { get; }

Property Value

bool

Overrides InlineLayoutBox.IsSplittable

PositionsCountInBox

Declaration

cs-api-definition
public override int PositionsCountInBox { get; }

Property Value

int

Overrides InlineLayoutBox.PositionsCountInBox

Text

Declaration

cs-api-definition
public override string Text { get; set; }

Property Value

string

Overrides InlineLayoutBox.Text

Methods

ContainsFormattingSymbol(string)

Declaration

cs-api-definition
public static bool ContainsFormattingSymbol(string text)

Parameters

text

string

Returns

bool

CreateLayoutElement()

Declaration

cs-api-definition
public override LayoutElement CreateLayoutElement()

Returns

LayoutElement

Overrides LayoutBox.CreateLayoutElement()

CreateNewFragment(float, bool)

Declaration

cs-api-definition
public override LayoutBox CreateNewFragment(float availableWidth, bool isFirstBoxInLine)

Parameters

availableWidth

float

isFirstBoxInLine

bool

Returns

LayoutBox

Overrides InlineLayoutBox.CreateNewFragment(float, bool)

CreateSpanLayoutBox(DocumentElement, DocumentStructureCollection, string)

Declaration

cs-api-definition
public static SpanLayoutBox CreateSpanLayoutBox(DocumentElement parentElement, DocumentStructureCollection collection, string text)

Parameters

parentElement

DocumentElement

collection

DocumentStructureCollection

text

string

Returns

SpanLayoutBox

GetPositionHandler()

Declaration

cs-api-definition
public override PositionHandler GetPositionHandler()

Returns

PositionHandler

Overrides InlineLayoutBox.GetPositionHandler()

InvalidateTextMeasure()

Declaration

cs-api-definition
public void InvalidateTextMeasure()

IsWordStart()

Declaration

cs-api-definition
public bool IsWordStart()

Returns

bool

MeasureOverride(SizeF)

Measures the space required by the LayoutElement Used by the layout system.

Declaration

cs-api-definition
protected override SizeF MeasureOverride(SizeF availableSize)

Parameters

availableSize

SizeF

The size that is available to the LayoutElement. The available size can be infinity (to take the full size of the element)

Returns

SizeF

The minimum size required by the element to be completely visible. Cannot be infinity.

Overrides LayoutElement.MeasureOverride(SizeF)

Remarks

In this method call to the Measure method of each child must be made.

MeasureTextOverride(SubStringPosition)

Declaration

cs-api-definition
protected virtual BoxMeasurementInfo MeasureTextOverride(SubStringPosition subStringPosition = SubStringPosition.None)

Parameters

subStringPosition

SubStringPosition

Returns

BoxMeasurementInfo

MergeWithNext(LayoutBox)

Declaration

cs-api-definition
public override void MergeWithNext(LayoutBox nextSpanBox)

Parameters

nextSpanBox

LayoutBox

Overrides InlineLayoutBox.MergeWithNext(LayoutBox)

OnAssociateDocumentElementChanged()

Declaration

cs-api-definition
protected override void OnAssociateDocumentElementChanged()

Overrides LayoutBox.OnAssociateDocumentElementChanged()

OnPropertyChanged(string)

Declaration

cs-api-definition
protected virtual void OnPropertyChanged(string propName)

Parameters

propName

string

SplitSpanByIndex(int, bool)

Declaration

cs-api-definition
public void SplitSpanByIndex(int splitIndex, bool isBefore)

Parameters

splitIndex

int

isBefore

bool

ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides LayoutBox.ToString()

Update(string)

Declaration

cs-api-definition
public void Update(string text)

Parameters

text

string

Events

PropertyChanged

Declaration

cs-api-definition
public event PropertyChangedEventHandler PropertyChanged

Event Value

PropertyChangedEventHandler

Implements INotifyPropertyChanged.PropertyChanged