aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Rendering/VisualLineTextParagraphProperties.cs
diff options
context:
space:
mode:
authorShai Frieder <Shai.Frieder@twine-s.com>2019-04-15 11:44:09 +0300
committerShai Frieder <Shai.Frieder@twine-s.com>2019-04-15 11:44:09 +0300
commit64e2776e794d752daaeb06121492744266f65a23 (patch)
tree00bed37becbcea5b31b9879c7341c7f0e2bb3ce1 /Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Rendering/VisualLineTextParagraphProperties.cs
parent49db61f198119289433e1f2e35b97e011c47aefe (diff)
parentaa5ba8c457c3722cf215c2992a0b03f310afd1c1 (diff)
downloadTango-64e2776e794d752daaeb06121492744266f65a23.tar.gz
Tango-64e2776e794d752daaeb06121492744266f65a23.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Rendering/VisualLineTextParagraphProperties.cs')
-rw-r--r--Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Rendering/VisualLineTextParagraphProperties.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Rendering/VisualLineTextParagraphProperties.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Rendering/VisualLineTextParagraphProperties.cs
new file mode 100644
index 000000000..9c3aab87f
--- /dev/null
+++ b/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Rendering/VisualLineTextParagraphProperties.cs
@@ -0,0 +1,31 @@
+// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
+// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
+
+using System;
+using System.Windows;
+using System.Windows.Media.TextFormatting;
+
+namespace Tango.Scripting.Editors.Rendering
+{
+ sealed class VisualLineTextParagraphProperties : TextParagraphProperties
+ {
+ internal TextRunProperties defaultTextRunProperties;
+ internal TextWrapping textWrapping;
+ internal double tabSize;
+ internal double indent;
+ internal bool firstLineInParagraph;
+
+ public override double DefaultIncrementalTab {
+ get { return tabSize; }
+ }
+
+ public override FlowDirection FlowDirection { get { return FlowDirection.LeftToRight; } }
+ public override TextAlignment TextAlignment { get { return TextAlignment.Left; } }
+ public override double LineHeight { get { return double.NaN; } }
+ public override bool FirstLineInParagraph { get { return firstLineInParagraph; } }
+ public override TextRunProperties DefaultTextRunProperties { get { return defaultTextRunProperties; } }
+ public override TextWrapping TextWrapping { get { return textWrapping; } }
+ public override TextMarkerProperties TextMarkerProperties { get { return null; } }
+ public override double Indent { get { return indent; } }
+ }
+}