/
TitleProperty.cs
78 lines (69 loc) · 3.05 KB
/
TitleProperty.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//===============================================================================================================
// System : Personal Data Interchange Classes
// File : TitleProperty.cs
// Author : Eric Woodruff (Eric@EWoodruff.us)
// Updated : 01/03/2019
// Note : Copyright 2004-2019, Eric Woodruff, All rights reserved
// Compiler: Microsoft Visual C#
//
// This file contains the Title property class used by the Personal Data Interchange (PDI) vCard class
//
// This code is published under the Microsoft Public License (Ms-PL). A copy of the license should be
// distributed with the code and can be found at the project website: https://github.com/EWSoftware/PDI.
// This notice, the author's name, and all copyright notices must remain intact in all applications,
// documentation, and source files.
//
// Date Who Comments
// ==============================================================================================================
// 03/14/2004 EFW Created the code
//===============================================================================================================
namespace EWSoftware.PDI.Properties
{
/// <summary>
/// This class is used to represent the Title (TITLE) property of a vCard. This specifies the job title,
/// functional position, or function of the individual associated with the vCard.
/// </summary>
/// <remarks>This property has no special requirements or handling. It is based on the X.520 Title
/// attribute. The <see cref="BaseProperty.Value"/> property contains the title.</remarks>
public class TitleProperty : BaseProperty
{
#region Properties
//=====================================================================
/// <summary>
/// This is used to establish the specification versions supported by the PDI object
/// </summary>
/// <value>Supports all vCard specifications</value>
public override SpecificationVersions VersionsSupported => SpecificationVersions.vCardAll;
/// <summary>
/// This read-only property defines the tag (TITLE)
/// </summary>
public override string Tag => "TITLE";
/// <summary>
/// This read-only property defines the default value type as TEXT
/// </summary>
public override string DefaultValueLocation => ValLocValue.Text;
#endregion
#region Constructor
//=====================================================================
/// <summary>
/// Default constructor
/// </summary>
public TitleProperty()
{
}
#endregion
#region Methods
//=====================================================================
/// <summary>
/// This is overridden to allow cloning of a PDI object
/// </summary>
/// <returns>A clone of the object</returns>
public override object Clone()
{
TitleProperty o = new TitleProperty();
o.Clone(this);
return o;
}
#endregion
}
}