mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-05-02 05:51:28 +08:00
标尺显示修改,不要小数
This commit is contained in:
@@ -330,7 +330,7 @@ namespace AIStudio.Wpf.ADiagram.Controls
|
|||||||
if ((dUnit != 0.0) && (dUnit < Length))
|
if ((dUnit != 0.0) && (dUnit < Length))
|
||||||
{
|
{
|
||||||
FormattedText ft = new FormattedText(
|
FormattedText ft = new FormattedText(
|
||||||
(dUnit + CountShift).ToString(CultureInfo.CurrentCulture),
|
(Math.Round(dUnit + CountShift,0)).ToString(CultureInfo.CurrentCulture),
|
||||||
CultureInfo.CurrentCulture,
|
CultureInfo.CurrentCulture,
|
||||||
FlowDirection.LeftToRight,
|
FlowDirection.LeftToRight,
|
||||||
new Typeface("Arial"),
|
new Typeface("Arial"),
|
||||||
@@ -415,7 +415,7 @@ namespace AIStudio.Wpf.ADiagram.Controls
|
|||||||
if ((dUnit != 0.0) && (dUnit < Length))
|
if ((dUnit != 0.0) && (dUnit < Length))
|
||||||
{
|
{
|
||||||
FormattedText ft = new FormattedText(
|
FormattedText ft = new FormattedText(
|
||||||
(dUnit + CountShift).ToString(CultureInfo.CurrentCulture),
|
(Math.Round(dUnit + CountShift,0)).ToString(CultureInfo.CurrentCulture),
|
||||||
CultureInfo.CurrentCulture,
|
CultureInfo.CurrentCulture,
|
||||||
FlowDirection.LeftToRight,
|
FlowDirection.LeftToRight,
|
||||||
new Typeface("Arial"),
|
new Typeface("Arial"),
|
||||||
|
|||||||
Reference in New Issue
Block a user