Skip to main content

Class BoundedTextItemHandler

Namespace: Aurigma.DesignAtoms.Canvas.ItemHandlers
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class BoundedTextItemHandler : BaseTextItemHandler, ICloneable, IDisposable, IWrappedTextItemHandler

Inheritance: System.Object -> Aurigma.DesignAtoms.Canvas.ItemHandlers.ItemHandler -> Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseRectangleItemHandler -> Aurigma.DesignAtoms.Canvas.ItemHandlers.ShapeItemHandler -> Aurigma.DesignAtoms.Canvas.ItemHandlers.RectangleItemHandler -> Aurigma.DesignAtoms.Canvas.ItemHandlers.BaseTextItemHandler -> BoundedTextItemHandler

Implements

Inherited Members

Constructors

BoundedTextItemHandler

public BoundedTextItemHandler(IConfiguration configuration, IStateResourcesRepository stateResourcesRepository, IColorManagement colorManagement, IFontService fontService, IUnsupportedGlyphService unsupportedGlyphService, IGmColorConverter gmColorConverter, IColorPreviewService colorPreviewService, BoundedTextItem item)

Properties

Item

public BoundedTextItem Item { get; }

RenderingMargin

protected override int RenderingMargin { get; }

TextRectangle

public RectangleF TextRectangle { get; set; }

Text

public override string Text { get; set; }

WrappingPath

public Path WrappingPath { get; set; }

WrappingMargin

public float WrappingMargin { get; set; }

ParagraphSettings

public ParagraphSettings ParagraphSettings { get; set; }

VerticalAlignment

public TextVerticalAlignment VerticalAlignment { get; set; }

IsVertical

public bool IsVertical { get; set; }

Methods

UpdateSize

public override void UpdateSize()
Overrides

ApplyTransform

protected void ApplyTransform(Transform transform, float angle)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.Model.Math.Transformtransform
System.Singleangle

ApplyTransform

protected override void ApplyTransform(Transform transform)
Parameters
TypeNameDescription
Aurigma.DesignAtoms.Model.Math.Transformtransform
Overrides

GetDrawingRotationCenter

protected override PointF GetDrawingRotationCenter(float dpi = 72F)
Parameters
TypeNameDescription
System.Singledpi
Returns

Aurigma.DesignAtoms.Model.Math.PointF

Overrides

CreateAdvancedText

protected override Text CreateAdvancedText(string text, Graphics graphics, bool isVector, FontRegistry fontRegistry)
Parameters
TypeNameDescription
System.Stringtext
Aurigma.GraphicsMill.AdvancedDrawing.Graphicsgraphics
System.BooleanisVector
Aurigma.GraphicsMill.AdvancedDrawing.FontRegistryfontRegistry
Returns

Aurigma.GraphicsMill.AdvancedDrawing.Text

Overrides

GetDrawingPath

protected override Path GetDrawingPath(float dpi = 72F)
Parameters
TypeNameDescription
System.Singledpi
Returns

Aurigma.GraphicsMill.AdvancedDrawing.Path

Overrides

MeasureText

protected override RectangleF MeasureText(out bool? textCropped, float dpi = 72F, bool includeMargins = false)
Parameters
TypeNameDescription
System.Nullable<System.Boolean>textCropped
System.Singledpi
System.BooleanincludeMargins
Returns

System.Drawing.RectangleF

Overrides

IsTextCropped

public bool IsTextCropped(float dpi = 72F, bool includeMargins = true)
Parameters
TypeNameDescription
System.Singledpi
System.BooleanincludeMargins
Returns

System.Boolean

MeasureText

protected override RectangleF MeasureText(float dpi = 72F, bool includeMargins = false, Func<string, Graphics, bool, FontRegistry, Text> createAdvancedText = null, bool withShadowAndStroke = true)
Parameters
TypeNameDescription
System.Singledpi
System.BooleanincludeMargins
System.Func<System.String,Aurigma.GraphicsMill.AdvancedDrawing.Graphics,System.Boolean,Aurigma.GraphicsMill.AdvancedDrawing.FontRegistry,Aurigma.GraphicsMill.AdvancedDrawing.Text>createAdvancedText
System.BooleanwithShadowAndStroke
Returns

System.Drawing.RectangleF

Overrides

GetBytes

protected override List<byte> GetBytes()
Returns

System.Collections.Generic.List<System.Byte>

Overrides

ItemOnPropertyChanged

protected override void ItemOnPropertyChanged(object sender, PropertyChangedEventArgs propertyChangedEventArgs)
Parameters
TypeNameDescription
System.Objectsender
System.ComponentModel.PropertyChangedEventArgspropertyChangedEventArgs
Overrides
Was this page helpful?