SvgTextAnchor.cs 981 Bytes
Newer Older
davescriven's avatar
davescriven committed
1
2
3
4
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
5
using System.ComponentModel;
davescriven's avatar
davescriven committed
6
7
8
9
10
11

namespace Svg
{
    /// <summary>
    /// Text anchor is used to align (start-, middle- or end-alignment) a string of text relative to a given point.
    /// </summary>
12
    [TypeConverter(typeof(SvgTextAnchorConverter))]
davescriven's avatar
davescriven committed
13
14
    public enum SvgTextAnchor
    {
15
        inherit,
davescriven's avatar
davescriven committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
        /// <summary>
        /// The rendered characters are aligned such that the start of the text string is at the initial current text position.
        /// </summary>
        Start,
        /// <summary>
        /// The rendered characters are aligned such that the middle of the text string is at the current text position.
        /// </summary>
        Middle,
        /// <summary>
        /// The rendered characters are aligned such that the end of the text string is at the initial current text position.
        /// </summary>
        End
    }
}