Class AutoScaledTextItemHandler
Inheritance
System.Object
AutoScaledTextItemHandler
Implements
System.ICloneable
System.IDisposable
Inherited Members
System.Object.ToString()
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()
Assembly: Aurigma.DesignAtoms.dll
Syntax
public class AutoScaledTextItemHandler : BaseTextItemHandler, ICloneable, IDisposable
Constructors
AutoScaledTextItemHandler(IConfiguration, IFileCache, ILogger, IFontService, IUnsupportedGlyphService, AutoScaledTextItem)
Declaration
public AutoScaledTextItemHandler(IConfiguration configuration, IFileCache fileCache, ILogger logger, IFontService fontService, IUnsupportedGlyphService unsupportedGlyphService, AutoScaledTextItem item)
Parameters
Properties
IsVertical
Declaration
public bool IsVertical { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Item
Declaration
public AutoScaledTextItem Item { get; }
Property Value
TextRectangle
Declaration
public RectangleF TextRectangle { get; set; }
Property Value
Type |
Description |
System.Drawing.RectangleF |
|
Methods
ApplyTransform(Transform)
Declaration
protected override void ApplyTransform(Transform transform)
Parameters
Overrides
CreateAdvancedText(String, Graphics)
Declaration
protected override Text CreateAdvancedText(string text, Graphics graphics)
Parameters
Type |
Name |
Description |
System.String |
text |
|
Aurigma.GraphicsMill.AdvancedDrawing.Graphics |
graphics |
|
Returns
Type |
Description |
Aurigma.GraphicsMill.AdvancedDrawing.Text |
|
Overrides
GetBytes()
Declaration
protected override List<byte> GetBytes()
Returns
Type |
Description |
System.Collections.Generic.List<System.Byte> |
|
Overrides
GetDrawingRotationCenter(Single)
Declaration
protected override PointF GetDrawingRotationCenter(float dpi = 72F)
Parameters
Type |
Name |
Description |
System.Single |
dpi |
|
Returns
Overrides
ItemOnPropertyChanged(Object, PropertyChangedEventArgs)
Declaration
protected override void ItemOnPropertyChanged(object sender, PropertyChangedEventArgs propertyChangedEventArgs)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.ComponentModel.PropertyChangedEventArgs |
propertyChangedEventArgs |
|
Overrides
MeasureText(Single, Boolean, Func<String, Graphics, Text>, Boolean)
Declaration
protected override RectangleF MeasureText(float dpi = 72F, bool includeMargins = true, Func<string, Graphics, Text> createAdvancedText = null, bool withShadowAndStroke = true)
Parameters
Type |
Name |
Description |
System.Single |
dpi |
|
System.Boolean |
includeMargins |
|
System.Func<System.String, Aurigma.GraphicsMill.AdvancedDrawing.Graphics, Aurigma.GraphicsMill.AdvancedDrawing.Text> |
createAdvancedText |
|
System.Boolean |
withShadowAndStroke |
|
Returns
Type |
Description |
System.Drawing.RectangleF |
|
Overrides
TextAlignmentToAdvanced(TextAlignment)
Declaration
protected override TextAlignment TextAlignmentToAdvanced(TextAlignment alignment)
Parameters
Returns
Type |
Description |
Aurigma.GraphicsMill.AdvancedDrawing.TextAlignment |
|
Overrides
UpdateSize()
Declaration
public override void UpdateSize()
Overrides
Implements
System.ICloneable
System.IDisposable