コード例 #1
0
ファイル: Table.cs プロジェクト: ChrisMoreton/Test3
		/// <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
ファイル: Box.cs プロジェクト: ChrisMoreton/Test3
		/// <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();
		}