Indicates the type of fixed width and font size state of the annotation object.
[FlagsAttribute()][SerializableAttribute()]public enum AnnFixedStateOperations : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
<FlagsAttribute()><SerializableAttribute()>Public Enum AnnFixedStateOperationsInherits System.EnumImplements System.IComparable, System.IConvertible, System.IFormattable
[FlagsAttribute()][SerializableAttribute()]public enum class AnnFixedStateOperations : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Members
| Value | Member | Description |
|---|---|---|
| 0x00000000 | None |
Annotation object is not fixed. |
| 0x00000001 | FontSize |
Fix the font size of the annotation object. Any text that is part of this object will be drawn using its original point value regardless of the current container scale value. |
| 0x00000002 | PenWidth |
Fix the pen size of the annotation object. Any line that is part of this object will be drawn using its original pixel size regardless of the current container scale value. |
This enumeration is used as value for the AnnObject.FixedState property. For more information on fixed annotation objects, refer to Fixed Annotations (Deprecated).
You can combine members of this enumeration together using a logical or operation (| in C# or OR in VB).
using Leadtools;using Leadtools.Annotations;using Leadtools.WinForms;public void AnnFixedStateOperationsExample(AnnContainer container, RasterImageViewer viewer, string newVideoPicture){// Create two text objects, one with fixed font and one withoutAnnTextObject textObject1 = new AnnTextObject();textObject1.Pen = new AnnPen(Color.Red, new AnnLength(1));textObject1.Text = "AnnFixedStateOperations.None";textObject1.FixedState = AnnFixedStateOperations.None;textObject1.Brush = null;textObject1.Font = new AnnFont("Arial", new AnnLength(10, AnnUnit.Point), FontStyle.Regular);textObject1.EdgeMargin = AnnLength.Empty;textObject1.Alignment = StringAlignment.Center;textObject1.LineAlignment = StringAlignment.Center;textObject1.TextRotate = AnnTextRotate.Rotate0;textObject1.Bounds = new AnnRectangle(100, 100, 100, 100);container.Objects.Add(textObject1);AnnTextObject textObject2 = textObject1.Clone() as AnnTextObject;textObject2.Text = "AnnFixedStateOperations.FontSize";textObject2.FixedState = AnnFixedStateOperations.FontSize;textObject2.Bounds = new AnnRectangle(400, 100, 100, 100);container.Objects.Add(textObject2);// Create two line objects, one with fixed pen size and one withoutAnnLineObject lineObject1 = new AnnLineObject();lineObject1.Pen = new AnnPen(Color.Blue, new AnnLength(1));lineObject1.NameVisible = true;lineObject1.NameOffset = AnnPoint.Empty;lineObject1.NameForeColor = Color.White;lineObject1.NameBackColor = Color.Blue;lineObject1.NameFont = new AnnFont("Arial", new AnnLength(11, AnnUnit.Point), FontStyle.Regular);lineObject1.StartPoint = new AnnPoint(100, 400);lineObject1.EndPoint = new AnnPoint(100, 800);lineObject1.Name = "AnnFixedStateOperations.None";lineObject1.FixedState = AnnFixedStateOperations.None;container.Objects.Add(lineObject1);AnnLineObject lineObject2 = lineObject1.Clone() as AnnLineObject;lineObject2.StartPoint = new AnnPoint(400, 400);lineObject2.EndPoint = new AnnPoint(400, 800);lineObject2.Name = "AnnFixedStateOperations.PenWidth";lineObject2.FixedState = AnnFixedStateOperations.PenWidth;container.Objects.Add(lineObject2);viewer.Invalidate();}
Imports LeadtoolsImports Leadtools.AnnotationsImports Leadtools.WinFormsPublic Sub AnnFixedStateOperationsExample(ByVal container As AnnContainer, ByVal viewer As RasterImageViewer, ByVal newVideoPicture As String)' Create two text objects, one with fixed font and one withoutDim textObject1 As New AnnTextObject()textObject1.Pen = New AnnPen(Color.Red, New AnnLength(1))textObject1.Text = "AnnFixedStateOperations.None"textObject1.FixedState = AnnFixedStateOperations.NonetextObject1.Brush = NothingtextObject1.Font = New AnnFont("Arial", New AnnLength(10, AnnUnit.Point), FontStyle.Regular)textObject1.EdgeMargin = AnnLength.EmptytextObject1.Alignment = StringAlignment.CentertextObject1.LineAlignment = StringAlignment.CentertextObject1.TextRotate = AnnTextRotate.Rotate0textObject1.Bounds = New AnnRectangle(100, 100, 100, 100)container.Objects.Add(textObject1)Dim textObject2 As AnnTextObject = CType(textObject1.Clone(), AnnTextObject)textObject2.Text = "AnnFixedStateOperations.FontSize"textObject2.FixedState = AnnFixedStateOperations.FontSizetextObject2.Bounds = New AnnRectangle(400, 100, 100, 100)container.Objects.Add(textObject2)' Create two line objects, one with fixed pen size and one withoutDim lineObject1 As New AnnLineObject()lineObject1.Pen = New AnnPen(Color.Blue, New AnnLength(1))lineObject1.NameVisible = TruelineObject1.NameOffset = AnnPoint.EmptylineObject1.NameForeColor = Color.WhitelineObject1.NameBackColor = Color.BluelineObject1.NameFont = New AnnFont("Arial", New AnnLength(11, AnnUnit.Point), FontStyle.Regular)lineObject1.StartPoint = New AnnPoint(100, 400)lineObject1.EndPoint = New AnnPoint(100, 800)lineObject1.Name = "AnnFixedStateOperations.None"lineObject1.FixedState = AnnFixedStateOperations.Nonecontainer.Objects.Add(lineObject1)Dim lineObject2 As AnnLineObject = CType(lineObject1.Clone(), AnnLineObject)lineObject2.StartPoint = New AnnPoint(400, 400)lineObject2.EndPoint = New AnnPoint(400, 800)lineObject2.Name = "AnnFixedStateOperations.PenWidth"lineObject2.FixedState = AnnFixedStateOperations.PenWidthcontainer.Objects.Add(lineObject2)viewer.Invalidate()End Sub
|
Products |
Support |
Feedback: AnnFixedStateOperations Enumeration - Leadtools.Annotations |
Introduction |
Help Version 19.0.2017.6.20
|

Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.