FigureUnitType 열거형

.NET Framework 3.0
Describes the unit type associated with the width or height of a FigureLength.

네임스페이스: System.Windows
어셈블리: PresentationFramework(presentationframework.dll)
XML 네임스페이스:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

구문

```public enum FigureUnitType
```
```public enum FigureUnitType
```
```public enum FigureUnitType
```
```<object property="EnumerationValue" .../>
```

멤버

멤버 이름설명
AutoDefault value when the FigureLength is not specified which creates a value for the width or height of the Figure that is calculated without constraints. Note: When FigureUnitType is set to Auto, the Value property of FigureLength is set to 1.
ColumnThe value of the width or height of the Figure is expressed as a fraction (including fractions greater then 1) of the width of the column the Figure is in.
ContentThe value of the width or height of the Figure is expressed as a fraction (including fractions greater then 1) of the content width of the Figure. Note: Note: When FigureUnitType is set to Content, the Value property of FigureLength must be set to a value between 0 and 1
PageThe value of the width or height of the Figure is expressed as a fraction (including fractions greater then 1) of the page width of that the Figure is in. Note: Note: When FigureUnitType is set to Page, the Value property of FigureLength must be set to a value between 0 and 1
PixelThe value of the width or height of the Figure is expressed in pixels (96 pixels-per-inch).

예제

In the following example, when the user clicks on the Figure, the Width of the Figure decreases. Below is the XAML for the sample.

```<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="SDKSample.FigureLengthExample" >

<FlowDocument >
<Paragraph>
Raw text inside the paragraph
<Figure Name="myFigure" Width="300">
<Paragraph FontStyle="Italic" MouseDown="OnMouseDownDecreaseWidth" >
Text inside of paragraph that is inside Figure...
</Paragraph>
</Figure>
</Paragraph>
</FlowDocument>

</Page>

```

Below is the code used to decrease the Width of the Figure using the Pixel to specify the unit type.

```using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;

namespace SDKSample
{
public partial class FigureLengthExample : Page
{

void OnMouseDownDecreaseWidth(object sender, MouseButtonEventArgs args)
{
FigureLength myFigureLength = myFigure.Width;
double widthValue = myFigureLength.Value;
if (widthValue > 0)
{
myFigure.Width = new FigureLength((widthValue - 10), FigureUnitType.Pixel);
}
}
}
}

```

플랫폼

Microsoft .NET Framework 3.0은 Windows Vista, Microsoft Windows XP SP2 및 Windows Server 2003 SP1에서 지원됩니다.

3.0에서 지원

추가
표시: