Skip to main content

Class AutoScaledTextItemHandler

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

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 -> AutoScaledTextItemHandler

Implements​

  • System.ICloneable
  • System.IDisposable

Inherited Members​

Constructors​

AutoScaledTextItemHandler​

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

Properties​

Item​

public AutoScaledTextItem Item { get; }

TextRectangle​

public RectangleF TextRectangle { get; set; }

IsVertical​

public bool IsVertical { get; set; }

Methods​

ItemOnPropertyChanged​

protected override void ItemOnPropertyChanged(object sender, PropertyChangedEventArgs propertyChangedEventArgs)
Parameters​
TypeNameDescription
System.Objectsender
System.ComponentModel.PropertyChangedEventArgspropertyChangedEventArgs
Overrides​

UpdateSize​

public override void UpdateSize()
Overrides​

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​

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​
Was this page helpful?