<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Text Annotation displaying problem in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/text-annotation-displaying-problem/m-p/794304#M1710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've added the line in the code above with the bold font, but nothing has changed. Do I have to add or remove anything in the code ? Can you help me ?Here is code below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;editOperation.Create(this.araMesafeLayer as Layer, values, oid =&amp;gt; newFeatureID = oid);&lt;BR /&gt; bool opResult = editOperation.Execute();&lt;BR /&gt; if (opResult) {&lt;/P&gt;&lt;P&gt;var chainedOp = editOperation.CreateChainedOperation();&lt;/P&gt;&lt;P&gt;chainedOp.Callback(context =&amp;gt;{&lt;BR /&gt; QueryFilter qf = new QueryFilter();&lt;BR /&gt; qf.WhereClause = BaseFeatureEntity.objectIdFieldName + "=" + newFeatureID.ToString();&lt;BR /&gt; cursor = fc.Search(qf, false);&lt;BR /&gt; cursor.MoveNext();&lt;BR /&gt; if (cursor.Current != null) {&lt;/P&gt;&lt;P&gt;annoFeature = cursor.Current as AnnotationFeature;&lt;BR /&gt; &lt;STRONG&gt;context.Invalidate(annoFeature);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if (annoFeature != null) {&lt;BR /&gt; var textGraphic = annoFeature.GetGraphic() as CIMTextGraphic;&lt;BR /&gt; if (textGraphic != null){&lt;BR /&gt; var symbol = textGraphic.Symbol.Symbol;&lt;BR /&gt; symbol.SetColor(ColorFactory.Instance.BlackRGB);&lt;BR /&gt; var cimTextSymbol = symbol as CIMTextSymbol;&lt;BR /&gt; cimTextSymbol.HorizontalAlignment = ArcGIS.Core.CIM.HorizontalAlignment.Center;&lt;BR /&gt; cimTextSymbol.VerticalAlignment = ArcGIS.Core.CIM.VerticalAlignment.Center;&lt;BR /&gt; cimTextSymbol.SetSize(this.size);&lt;BR /&gt; textGraphic.Text = this.mesafe.ToString("0.##");&lt;BR /&gt; annoFeature.SetGraphic(textGraphic);&lt;BR /&gt; annoFeature.Store();&lt;BR /&gt; context.Invalidate(annoFeature);&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; }, fc);&lt;BR /&gt; chainedOp.Execute();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for Helping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Nov 2018 12:20:28 GMT</pubDate>
    <dc:creator>tanerkoka</dc:creator>
    <dc:date>2018-11-29T12:20:28Z</dc:date>
    <item>
      <title>Text Annotation displaying problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/text-annotation-displaying-problem/m-p/794301#M1707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;We are develope commands for arcgis pro sdk 2.2 version.We have developed the "Intermediate distance writing " tool.Tool lines are feature class, distance string is the annotation .But annotation (distance string) when I create new one store annotation correctly in&amp;nbsp; table but&amp;nbsp; not shown stable in map. When create a new sometimes when I use zoom in/out (change scale), some annotations or all annotations don not display.When I create a new one sometimes all the annotations appear.&amp;nbsp; Here is the &lt;STRONG&gt;Pictures&amp;nbsp;&lt;/STRONG&gt;and &lt;STRONG&gt;Codes&amp;nbsp;&lt;/STRONG&gt;below. How can I solve this problem ? Could this problem be a bug?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pictures:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;IMG __jive_id="430044" alt="annotation1" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/430044_Annotation.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;IMG __jive_id="430045" alt="annotation2" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/430045_annotation1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Codes:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#region VARIABLES&lt;BR /&gt; private BaseBL baseBL = new BaseBL();&lt;BR /&gt; private AnnotationBL annotationBL = new AnnotationBL();&lt;BR /&gt; private Layer planlamaAlaniLayer;&lt;BR /&gt; private FeatureLayer araMesafeLineLayer;&lt;BR /&gt; private AnnotationLayer araMesafeLayer;&lt;BR /&gt; private Polyline polyline;&lt;BR /&gt; private Polyline annotationPolyline;&lt;BR /&gt; private MapPoint centerPoint;&lt;BR /&gt; private PolylineBuilder polylineBuilder;&lt;BR /&gt; private List&amp;lt;Segment&amp;gt; segmentList;&lt;BR /&gt; private double distance;&lt;BR /&gt; private double mesafe;&lt;BR /&gt; private double size;&lt;BR /&gt; private int clickCount;&lt;BR /&gt; private string planlamaAlaniID;&lt;BR /&gt; private string methodBilgi;&lt;BR /&gt; private RowCursor cursor;&lt;BR /&gt; private AnnotationFeature annoFeature;&lt;BR /&gt; #endregion VARIABLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#region CONSTRUCTOR&lt;BR /&gt; public AraMesafeYazMapTool()&lt;BR /&gt; {&lt;BR /&gt; IsSketchTool = true;&lt;BR /&gt; SketchType = SketchGeometryType.Line;&lt;BR /&gt; SketchOutputMode = SketchOutputMode.Map;&lt;BR /&gt; UseSnapping = true;&lt;BR /&gt; }&lt;BR /&gt; #endregion CONSTRUCTOR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;protected override Task&amp;lt;bool&amp;gt; OnSketchCompleteAsync(Geometry geometry)&lt;BR /&gt; {&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (clickCount != 2)&lt;BR /&gt; return Task.FromResult(false);&lt;/P&gt;&lt;P&gt;return QueuedTask.Run(() =&amp;gt;&lt;BR /&gt; {&lt;BR /&gt; try&lt;BR /&gt; {&lt;BR /&gt; if (!KatmanKontrol())&lt;BR /&gt; return false;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#region CREATING LINE FEATURES&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;geometry = GeometryEngine.Instance.Project(geometry, this.araMesafeLayer.GetSpatialReference());&lt;BR /&gt; polyline = geometry as Polyline;&lt;BR /&gt; if (polyline != null)&lt;BR /&gt; {&lt;BR /&gt; this.planlamaAlaniID = Library.GetPlanlamaAlaniID(this.planlamaAlaniLayer, polyline);&lt;BR /&gt; if (this.planlamaAlaniID == null)&lt;BR /&gt; return false;&lt;/P&gt;&lt;P&gt;this.mesafe = polyline.Length;&lt;/P&gt;&lt;P&gt;this.centerPoint = GeometryEngine.Instance.Centroid(polyline);&lt;BR /&gt; this.annotationPolyline = GeometryEngine.Instance.Rotate(polyline, GeometryEngine.Instance.Centroid(polyline), Math.PI / 2) as Polyline;&lt;/P&gt;&lt;P&gt;polylineBuilder = new PolylineBuilder(polyline);&lt;BR /&gt; distance = polyline.Length / 2;&lt;BR /&gt; if (distance &amp;lt;= 5)&lt;BR /&gt; distance = distance - polyline.Length / 8;&lt;BR /&gt; else&lt;BR /&gt; distance = distance - 2;&lt;BR /&gt; polylineBuilder.SplitAtDistance(distance, false);&lt;/P&gt;&lt;P&gt;distance = polyline.Length / 2;&lt;BR /&gt; if (distance &amp;lt;= 5)&lt;BR /&gt; distance = distance + polyline.Length / 8;&lt;BR /&gt; else&lt;BR /&gt; distance = distance + 2;&lt;BR /&gt; polylineBuilder.SplitAtDistance(distance, false);&lt;BR /&gt; segmentList = GeometryUtil.GetSegment(polylineBuilder.ToGeometry());&lt;/P&gt;&lt;P&gt;if (segmentList.Count != 3)&lt;BR /&gt; return false;&lt;/P&gt;&lt;P&gt;segmentList.RemoveAt(1);&lt;/P&gt;&lt;P&gt;polyline = GeometryEngine.Instance.Union(PolylineBuilder.CreatePolyline(segmentList.FirstOrDefault()), PolylineBuilder.CreatePolyline(segmentList.LastOrDefault())) as Polyline;&lt;BR /&gt; if (!baseBL.InsertBaseFeature(MapView.Active, baseBL.CreateBaseFeatureEntity(polyline, null, this.araMesafeLineLayer, this.planlamaAlaniID, ref this.methodBilgi), ref this.methodBilgi, "Ara mesafe yaz - Çizgi ekleme"))&lt;BR /&gt; {&lt;BR /&gt; Library.MesajHata(methodBilgi);&lt;BR /&gt; return false;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;if (mesafe &amp;gt;= 20)&lt;BR /&gt; size = 0.1;&lt;BR /&gt; else&lt;BR /&gt; size = mesafe * 0.1 / 20;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#endregion CREATING LINE FEATURES&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;#region CREATING&amp;nbsp; DİSTANCE ANNOTATİON&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; var fc = this.araMesafeLayer.GetFeatureClass() as AnnotationFeatureClass;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; if (fc == null)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; return false;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt; EditOperation editOperation = new EditOperation();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; editOperation.Name = "Mesafe Sembölü";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; editOperation.SelectNewFeatures = false;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt; var cimDefinition = fc.GetDefinition() as AnnotationFeatureClassDefinition;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; var labels = cimDefinition.GetLabelClassCollection();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; var symbols = cimDefinition.GetSymbolCollection();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if ((labels.Count == 0) || (symbols.Count == 0))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;return false;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var label = labels[0];&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; if (labels.Count &amp;gt; 1)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; foreach (var LabelClass in labels)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; if (LabelClass.Name == CurrentTemplate.Name)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; label = LabelClass;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; break;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var symbolName = label.TextSymbol.SymbolName;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; int symbolID = -1;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; if (!int.TryParse(symbolName, out symbolID))&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; foreach (var symbol in symbols)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; if (symbol.Name == symbolName)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; symbolID = symbol.ID;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; break;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if (symbolID == -1)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; return false;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dictionary&amp;lt;string, object&amp;gt; values = new Dictionary&amp;lt;string, object&amp;gt;();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; values.Add("SymbolID", symbolID);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; values.Add("AnnotationClassID", label.ID);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;int idxField = cimDefinition.FindField("TextString");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;values.Add("TextString", this.mesafe.ToString("0.##"));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt; values["SHAPE"] = this.annotationPolyline as Geometry;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;long newFeatureID = -1;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; editOperation.Create(this.araMesafeLayer as Layer, values, oid =&amp;gt; newFeatureID = oid);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; bool opResult = editOperation.Execute();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; if (opResult)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; var chainedOp = editOperation.CreateChainedOperation();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; chainedOp.Callback(context =&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; QueryFilter qf = new QueryFilter();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; qf.WhereClause = BaseFeatureEntity.objectIdFieldName + "=" + newFeatureID.ToString();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; cursor = fc.Search(qf, false);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; cursor.MoveNext();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if (cursor.Current != null)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; annoFeature = cursor.Current as AnnotationFeature;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if (annoFeature != null)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var textGraphic = annoFeature.GetGraphic() as CIMTextGraphic;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; if (textGraphic != null)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; var symbol = textGraphic.Symbol.Symbol;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; symbol.SetColor(ColorFactory.Instance.BlackRGB);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; var cimTextSymbol = symbol as CIMTextSymbol;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; cimTextSymbol.HorizontalAlignment = ArcGIS.Core.CIM.HorizontalAlignment.Center;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; cimTextSymbol.VerticalAlignment = ArcGIS.Core.CIM.VerticalAlignment.Center;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; cimTextSymbol.SetSize(this.size);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;textGraphic.Text = this.mesafe.ToString("0.##");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;annoFeature.SetGraphic(textGraphic);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; annoFeature.Store();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; context.Invalidate(annoFeature);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }, fc);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;chainedOp.Execute();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#endregion CREATING&amp;nbsp; DİSTANCE ANNOTATİON&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt; }&lt;BR /&gt; catch (Exception ex)&lt;BR /&gt; {&lt;BR /&gt; Library.MesajHata(ex.ToString());&lt;BR /&gt; }&lt;BR /&gt; finally&lt;BR /&gt; {&lt;BR /&gt; if (cursor != null)&lt;BR /&gt; cursor.Dispose();&lt;/P&gt;&lt;P&gt;if (annoFeature != null)&lt;BR /&gt; annoFeature.Dispose();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clickCount = 0;&lt;BR /&gt; }&lt;BR /&gt; return true;&lt;BR /&gt; });&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample codes we take for reference, Narelle Chedzey suggested codes:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/208636"&gt;How can I create Text Anntation with given FontSize and Alignment ?&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks For Helping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2018 12:25:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/text-annotation-displaying-problem/m-p/794301#M1707</guid>
      <dc:creator>tanerkoka</dc:creator>
      <dc:date>2018-11-21T12:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Text Annotation displaying problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/text-annotation-displaying-problem/m-p/794302#M1708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;İs there any progress in the question above ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for helping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2018 10:43:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/text-annotation-displaying-problem/m-p/794302#M1708</guid>
      <dc:creator>tanerkoka</dc:creator>
      <dc:date>2018-11-28T10:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Text Annotation displaying problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/text-annotation-displaying-problem/m-p/794303#M1709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In future try to put your code inside the syntax highlighter (expand the toolbar, choose more then 'syntax highlighter) to make the code easier to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing to try is to invalidate the row in the callback both before and after the changes. Place an additional "context.Invalidate(annoFeature);" before the textgraphic and symbol changes in the callback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At 2.3 creating an editing annotation becomes easier as its more integrated into the edit operation and inspector so you wont need the callback or a chained operation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2018 22:27:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/text-annotation-displaying-problem/m-p/794303#M1709</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-11-28T22:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Text Annotation displaying problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/text-annotation-displaying-problem/m-p/794304#M1710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've added the line in the code above with the bold font, but nothing has changed. Do I have to add or remove anything in the code ? Can you help me ?Here is code below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;editOperation.Create(this.araMesafeLayer as Layer, values, oid =&amp;gt; newFeatureID = oid);&lt;BR /&gt; bool opResult = editOperation.Execute();&lt;BR /&gt; if (opResult) {&lt;/P&gt;&lt;P&gt;var chainedOp = editOperation.CreateChainedOperation();&lt;/P&gt;&lt;P&gt;chainedOp.Callback(context =&amp;gt;{&lt;BR /&gt; QueryFilter qf = new QueryFilter();&lt;BR /&gt; qf.WhereClause = BaseFeatureEntity.objectIdFieldName + "=" + newFeatureID.ToString();&lt;BR /&gt; cursor = fc.Search(qf, false);&lt;BR /&gt; cursor.MoveNext();&lt;BR /&gt; if (cursor.Current != null) {&lt;/P&gt;&lt;P&gt;annoFeature = cursor.Current as AnnotationFeature;&lt;BR /&gt; &lt;STRONG&gt;context.Invalidate(annoFeature);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if (annoFeature != null) {&lt;BR /&gt; var textGraphic = annoFeature.GetGraphic() as CIMTextGraphic;&lt;BR /&gt; if (textGraphic != null){&lt;BR /&gt; var symbol = textGraphic.Symbol.Symbol;&lt;BR /&gt; symbol.SetColor(ColorFactory.Instance.BlackRGB);&lt;BR /&gt; var cimTextSymbol = symbol as CIMTextSymbol;&lt;BR /&gt; cimTextSymbol.HorizontalAlignment = ArcGIS.Core.CIM.HorizontalAlignment.Center;&lt;BR /&gt; cimTextSymbol.VerticalAlignment = ArcGIS.Core.CIM.VerticalAlignment.Center;&lt;BR /&gt; cimTextSymbol.SetSize(this.size);&lt;BR /&gt; textGraphic.Text = this.mesafe.ToString("0.##");&lt;BR /&gt; annoFeature.SetGraphic(textGraphic);&lt;BR /&gt; annoFeature.Store();&lt;BR /&gt; context.Invalidate(annoFeature);&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; }, fc);&lt;BR /&gt; chainedOp.Execute();&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for Helping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2018 12:20:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/text-annotation-displaying-problem/m-p/794304#M1710</guid>
      <dc:creator>tanerkoka</dc:creator>
      <dc:date>2018-11-29T12:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Text Annotation displaying problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/text-annotation-displaying-problem/m-p/794305#M1711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Hi,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Is there any improvement in the above question?&amp;nbsp; Is it a bug? Because our customers waiting for this.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 14:44:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/text-annotation-displaying-problem/m-p/794305#M1711</guid>
      <dc:creator>tanerkoka</dc:creator>
      <dc:date>2018-12-03T14:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Text Annotation displaying problem</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/text-annotation-displaying-problem/m-p/794306#M1712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cannot reproduce your issue in either 2.2 or our next release (not yet available) 2.3. The placement of your context.Invalidate statements are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please work with ESRI tech support to resolve your issue. They will most likely need a copy of your data as well.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 19:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/text-annotation-displaying-problem/m-p/794306#M1712</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2018-12-03T19:23:44Z</dc:date>
    </item>
  </channel>
</rss>

