Back to Website
Show / Hide Table of Contents

Class BaseTextItemHandler

Inheritance
System.Object
ItemHandler
BaseRectangleItemHandler
ShapeItemHandler
RectangleItemHandler
BaseTextItemHandler
ArchedTextItemHandler
AutoScaledTextItemHandler
BoundedTextItemHandler
CurvedTextItemHandler
PathBoundedTextItemHandler
PlainTextItemHandler
Implements
System.ICloneable
System.IDisposable
Inherited Members
ShapeItemHandler.ItemOnPropertyChanged(Object, PropertyChangedEventArgs)
ShapeItemHandler.GetBorderColor(IColorProfilesProvider)
ShapeItemHandler.GetAltBorderColor(IColorProfilesProvider)
ShapeItemHandler.GetFillColor(IColorProfilesProvider)
ShapeItemHandler.GetTransformedPath()
ShapeItemHandler.UpdateControlPoints()
ShapeItemHandler.GetBorderWidth(Single)
ShapeItemHandler.GetShapeDrawer(IRenderingColorSettings, PixelFormat, Single, PointF, IColorProfilesProvider)
ShapeItemHandler.GetPath()
ShapeItemHandler.GetDrawingFillColor(PixelFormat, IColorProfilesProvider)
ShapeItemHandler.FillShape(Graphics, IRenderingColorSettings, PixelFormat, IColorProfilesProvider, Boolean, Boolean, Boolean)
ShapeItemHandler.StrokeShape(Graphics, IRenderingColorSettings, PixelFormat, IColorProfilesProvider, Boolean, Boolean, Boolean)
ShapeItemHandler.DrawShape(RenderingContext, Graphics, IImageParams, DrawItemParams, IRenderingColorSettings, IColorProfilesProvider, Boolean, Boolean, Boolean, Boolean, Boolean)
ShapeItemHandler.Path
ShapeItemHandler.Dash
ShapeItemHandler.BorderWidth
ShapeItemHandler.FixedBorderWidth
BaseRectangleItemHandler.MinDimension
BaseRectangleItemHandler.GetTransform(RectangleF, RotatedRectangleF)
BaseRectangleItemHandler.DrawClippingPath(Graphics, Action)
BaseRectangleItemHandler.GetClippingPath(Single, Boolean)
BaseRectangleItemHandler.GetTransformedVectorMask(Transform, PointF, Boolean)
BaseRectangleItemHandler.GetActualDash(Single[], Boolean, Single)
BaseRectangleItemHandler.Rectangle
BaseRectangleItemHandler.Angle
BaseRectangleItemHandler.Height
BaseRectangleItemHandler.Width
BaseRectangleItemHandler.Location
BaseRectangleItemHandler.Opacity
BaseRectangleItemHandler.TextWrappingMode
ItemHandler._fileCache
ItemHandler._configuration
ItemHandler._ccLogger
ItemHandler._logger
ItemHandler._colorManagement
ItemHandler._gmColorConverter
ItemHandler.Draw(RenderingContext, Bitmap, IRenderingColorSettings, IColorProfilesProvider, Boolean, Boolean, Boolean)
ItemHandler.Draw(RenderingContext, Bitmap, DrawItemParams, IRenderingColorSettings, IColorProfilesProvider, Boolean, Boolean, Boolean)
ItemHandler.ItemOnPermissionsChanged(Object, EventArgs)
ItemHandler.Clone()
ItemHandler.BeginUpdate()
ItemHandler.EndUpdate()
ItemHandler.Dispose()
ItemHandler.OnChanged()
ItemHandler.GetDestinationColor(Color, IColorProfilesProvider, IRenderingColorSettings, Nullable<PixelFormat>, Single, Boolean, Boolean)
ItemHandler.Dispose(Boolean)
ItemHandler.UniqueId
ItemHandler.Transform
ItemHandler.Tag
ItemHandler.Layer
ItemHandler.IsUpdating
ItemHandler.Index
ItemHandler.Canvas
ItemHandler.Name
ItemHandler.BlendMode
ItemHandler.Permissions
ItemHandler.Data
ItemHandler.Visible
ItemHandler.Locked
ItemHandler.SourceColorProfilesOrDefault
ItemHandler.Changed
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()
Namespace: Aurigma.DesignAtoms.Canvas.ItemHandlers
Assembly: Aurigma.DesignAtoms.dll
Syntax
public abstract class BaseTextItemHandler : RectangleItemHandler, ICloneable, IDisposable

Constructors

BaseTextItemHandler(IConfiguration, IFileCache, IColorManagement, ILogger, IFontService, IUnsupportedGlyphService, IGmColorConverter, IColorPreviewService, BaseTextItem)

Declaration
protected BaseTextItemHandler(IConfiguration configuration, IFileCache fileCache, IColorManagement colorManagement, ILogger ccLogger, IFontService fontService, IUnsupportedGlyphService unsupportedGlyphService, IGmColorConverter gmColorConverter, IColorPreviewService colorPreviewService, BaseTextItem item)
Parameters
Type Name Description
IConfiguration configuration
IFileCache fileCache
IColorManagement colorManagement
ILogger ccLogger
IFontService fontService
IUnsupportedGlyphService unsupportedGlyphService
IGmColorConverter gmColorConverter
IColorPreviewService colorPreviewService
BaseTextItem item

Fields

_fontService

Declaration
protected readonly IFontService _fontService
Field Value
Type Description
IFontService

_handlingTransformChanged

Declaration
protected bool _handlingTransformChanged
Field Value
Type Description
System.Boolean

_methodMeasurer

Declaration
protected IMethodMeasurer _methodMeasurer
Field Value
Type Description
IMethodMeasurer

CurrentTextImage

Declaration
public BaseTextItemHandler.TextImageData CurrentTextImage
Field Value
Type Description
BaseTextItemHandler.TextImageData

Properties

ActualAngle

Declaration
public double ActualAngle { get; set; }
Property Value
Type Description
System.Double

Alignment

Declaration
public TextAlignment Alignment { get; set; }
Property Value
Type Description
TextAlignment

Bounds

Declaration
public override RectangleF Bounds { get; }
Property Value
Type Description
System.Drawing.RectangleF
Overrides
RectangleItemHandler.Bounds

CheckTextCrop

Declaration
public bool CheckTextCrop { get; set; }
Property Value
Type Description
System.Boolean

ControlPoints

Declaration
public override PointF[] ControlPoints { get; set; }
Property Value
Type Description
PointF[]
Overrides
ItemHandler.ControlPoints

Font

Declaration
public IFontSettings Font { get; }
Property Value
Type Description
IFontSettings

HorizontalScale

Declaration
public virtual float HorizontalScale { get; set; }
Property Value
Type Description
System.Single

IsEmpty

Declaration
public override bool IsEmpty { get; }
Property Value
Type Description
System.Boolean
Overrides
ItemHandler.IsEmpty

IsFormatted

Declaration
protected bool IsFormatted { get; }
Property Value
Type Description
System.Boolean

IsStrokeSet

Declaration
public bool IsStrokeSet { get; }
Property Value
Type Description
System.Boolean

Item

Declaration
public BaseTextItem Item { get; }
Property Value
Type Description
BaseTextItem

Leading

Declaration
public float Leading { get; set; }
Property Value
Type Description
System.Single

PreventUpdate

Declaration
public bool PreventUpdate { get; set; }
Property Value
Type Description
System.Boolean

PreviewScale

Declaration
public float PreviewScale { get; set; }
Property Value
Type Description
System.Single

RenderingMargin

Declaration
protected virtual int RenderingMargin { get; }
Property Value
Type Description
System.Int32

Shadow

Declaration
public ShadowSettings Shadow { get; set; }
Property Value
Type Description
ShadowSettings

Stroke

Declaration
public StrokeSettings Stroke { get; set; }
Property Value
Type Description
StrokeSettings

Text

Declaration
public virtual string Text { get; set; }
Property Value
Type Description
System.String

TextMode

Declaration
protected TextMode TextMode { get; set; }
Property Value
Type Description
TextMode

Tracking

Declaration
public float Tracking { get; set; }
Property Value
Type Description
System.Single

Underline

Declaration
public bool Underline { get; set; }
Property Value
Type Description
System.Boolean

ValidRect

Declaration
protected bool ValidRect { get; set; }
Property Value
Type Description
System.Boolean

VerticalScale

Declaration
public virtual float VerticalScale { get; set; }
Property Value
Type Description
System.Single

Methods

ApplyTransform(Transform)

Declaration
protected abstract void ApplyTransform(Transform transform)
Parameters
Type Name Description
Transform transform

CalcMaxSideLengthOfCharBoundsPx(Single)

Declaration
protected int CalcMaxSideLengthOfCharBoundsPx(float dpi)
Parameters
Type Name Description
System.Single dpi
Returns
Type Description
System.Int32

CreateAdvancedText(String, Graphics, Boolean, FontRegistry)

Declaration
protected abstract Text CreateAdvancedText(string text, Graphics graphics, bool isVector, FontRegistry fontRegistry)
Parameters
Type Name Description
System.String text
Aurigma.GraphicsMill.AdvancedDrawing.Graphics graphics
System.Boolean isVector
Aurigma.GraphicsMill.AdvancedDrawing.FontRegistry fontRegistry
Returns
Type Description
Aurigma.GraphicsMill.AdvancedDrawing.Text

CreateGmFont(Graphics, FontRegistry, Boolean, ref String)

Declaration
protected Font CreateGmFont(Graphics graphics, FontRegistry fontRegistry, bool isVector, ref string text)
Parameters
Type Name Description
Aurigma.GraphicsMill.AdvancedDrawing.Graphics graphics
Aurigma.GraphicsMill.AdvancedDrawing.FontRegistry fontRegistry
System.Boolean isVector
System.String text
Returns
Type Description
Aurigma.GraphicsMill.AdvancedDrawing.Font

CreateText(Graphics, FontRegistry, IRenderingColorSettings, Nullable<PixelFormat>, Func<String, Graphics, Boolean, FontRegistry, Text>, String, Boolean)

Declaration
protected Text CreateText(Graphics graphics, FontRegistry fontRegistry, IRenderingColorSettings colorSettings = null, PixelFormat? destinationPixelFormat = null, Func<string, Graphics, bool, FontRegistry, Text> createAdvancedText = null, string text = null, bool renderOnPdf = false)
Parameters
Type Name Description
Aurigma.GraphicsMill.AdvancedDrawing.Graphics graphics
Aurigma.GraphicsMill.AdvancedDrawing.FontRegistry fontRegistry
IRenderingColorSettings colorSettings
System.Nullable<PixelFormat> destinationPixelFormat
System.Func<System.String, Aurigma.GraphicsMill.AdvancedDrawing.Graphics, System.Boolean, Aurigma.GraphicsMill.AdvancedDrawing.FontRegistry, Aurigma.GraphicsMill.AdvancedDrawing.Text> createAdvancedText
System.String text
System.Boolean renderOnPdf
Returns
Type Description
Aurigma.GraphicsMill.AdvancedDrawing.Text

GetAdvancedTextLeading()

Declaration
protected float GetAdvancedTextLeading()
Returns
Type Description
System.Single

GetBasicTextAlignment(TextAlignment)

Declaration
protected TextAlignment GetBasicTextAlignment(TextAlignment alignment)
Parameters
Type Name Description
Aurigma.GraphicsMill.AdvancedDrawing.TextAlignment alignment
Returns
Type Description
Aurigma.GraphicsMill.AdvancedDrawing.TextAlignment

GetBytes()

Declaration
protected virtual List<byte> GetBytes()
Returns
Type Description
System.Collections.Generic.List<System.Byte>

GetDrawingPath(Single)

Declaration
protected override Path GetDrawingPath(float dpi = 72F)
Parameters
Type Name Description
System.Single dpi
Returns
Type Description
Aurigma.GraphicsMill.AdvancedDrawing.Path
Overrides
RectangleItemHandler.GetDrawingPath(Single)

GetDrawingRotationCenter(Single)

Declaration
protected abstract PointF GetDrawingRotationCenter(float dpi = 72F)
Parameters
Type Name Description
System.Single dpi
Returns
Type Description
PointF

GetItemHandlerData()

Declaration
public override ItemHandlerData GetItemHandlerData()
Returns
Type Description
ItemHandlerData
Overrides
ShapeItemHandler.GetItemHandlerData()

GetItemHandlerDataType()

Declaration
public override string GetItemHandlerDataType()
Returns
Type Description
System.String
Overrides
ShapeItemHandler.GetItemHandlerDataType()

GetTextColor(IColorProfilesProvider)

Declaration
public Color GetTextColor(IColorProfilesProvider profilesProvider)
Parameters
Type Name Description
IColorProfilesProvider profilesProvider
Returns
Type Description
Aurigma.GraphicsMill.Color

GetTextWithColors()

Declaration
protected string GetTextWithColors()
Returns
Type Description
System.String

MeasureText(out Nullable<Boolean>, Single, Boolean)

Declaration
protected virtual RectangleF MeasureText(out bool? textCropped, float dpi = 72F, bool includeMargins = false)
Parameters
Type Name Description
System.Nullable<System.Boolean> textCropped
System.Single dpi
System.Boolean includeMargins
Returns
Type Description
System.Drawing.RectangleF

MeasureText(Single, Boolean, Func<String, Graphics, Boolean, FontRegistry, Text>, Boolean)

Declaration
protected virtual RectangleF MeasureText(float dpi = 72F, bool includeMargins = false, Func<string, Graphics, bool, FontRegistry, Text> createAdvancedText = null, bool withShadowAndStroke = true)
Parameters
Type Name Description
System.Single dpi
System.Boolean includeMargins
System.Func<System.String, Aurigma.GraphicsMill.AdvancedDrawing.Graphics, System.Boolean, Aurigma.GraphicsMill.AdvancedDrawing.FontRegistry, Aurigma.GraphicsMill.AdvancedDrawing.Text> createAdvancedText
System.Boolean withShadowAndStroke
Returns
Type Description
System.Drawing.RectangleF

OnTransformChanged(Object, EventArgs)

Declaration
protected override void OnTransformChanged(object sender, EventArgs e)
Parameters
Type Name Description
System.Object sender
System.EventArgs e
Overrides
ItemHandler.OnTransformChanged(Object, EventArgs)

ScaleItem(Single)

Declaration
protected void ScaleItem(float scale)
Parameters
Type Name Description
System.Single scale

UpdateMask(Transform, PointF)

Declaration
protected virtual void UpdateMask(Transform transform, PointF controlCenter = null)
Parameters
Type Name Description
Transform transform
PointF controlCenter

UpdateSize()

Declaration
public virtual void UpdateSize()

Implements

System.ICloneable
System.IDisposable
Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback