Пример #1
0
		/// <summary>
		/// Updates the internal MindFusion.FlowChartX.Text.Text
		/// obejct when styled characteristics of
		/// a table's text have changed.
		/// </summary>
		private void updateText()
		{
			if (useStyledText)
			{
				Graphics graphics = flowChart.CreateGraphics();
				flowChart.setTransforms(graphics);

				// Create and setup styled text
				fcaption = new Text.StyledText();
				fcaption.Setup(caption, graphics, Font);

				graphics.Dispose();
			}
			else
			{
				// Text won't be used
				fcaption = null;
			}
		}
Пример #2
0
		/// <summary>
		/// Updates the internal MindFusion.FlowChartX.Text.Text
		/// obejct when styled / laid-out characteristics of
		/// the box' text have changed.
		/// </summary>
		private void updateText()
		{
			Graphics graphics = flowChart.CreateGraphics();
			flowChart.setTransforms(graphics);

			if (useStyledText)
			{
				// Create and setup styled text
				ftext = new Text.StyledText();
				ftext.Setup(text, graphics, Font);
			}
			else
			{
				if (useTextLayout)
				{
					// Create and setup plain text
					ftext = new Text.PlainText();
					ftext.Setup(text, graphics, Font);
				}
				else
				{
					// Text won't be used
					ftext = null;
				}
			}

			graphics.Dispose();
		}