Class ExtendedAttributeDefinition
Namespace: Aspose.Tasks
Assembly: Aspose.Tasks.dll (25.2.0)
Reprezentuje definicję atrybutu rozszerzonego powiązanego z projektem.
[ClassInterface(ClassInterfaceType.AutoDual)]
public class ExtendedAttributeDefinition
Dziedziczenie
object ← ExtendedAttributeDefinition
Członkowie dziedziczeni
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Właściwości
Alias
Uzyskuje lub ustawia alias pola niestandardowego.
public string Alias { get; set; }
Wartość właściwości
AppendNewValues
Uzyskuje lub ustawia wartość wskazującą, czy nowe wartości dodane do projektu są automatycznie dodawane do listy.
public bool AppendNewValues { get; set; }
Wartość właściwości
Uwagi
Obecnie obsługiwane dla formatów MSP 2003/2007 Xml oraz MSP 2003 mpp.
AutoRollDown
Uzyskuje lub ustawia wartość wskazującą, czy automatyczne obniżanie do zadań jest włączone.
public bool AutoRollDown { get; set; }
Wartość właściwości
CalculationType
Uzyskuje lub ustawia typ obliczenia wartości atrybutu niestandardowego.
public CalculationType CalculationType { get; set; }
Wartość właściwości
CfType
Uzyskuje typ pola niestandardowego.
public CustomFieldType CfType { get; }
Wartość właściwości
Default
Uzyskuje lub ustawia wartość domyślną na liście.
public string Default { get; set; }
Wartość właściwości
Uwagi
Obecnie obsługiwane dla formatów MSP 2003/2007 Xml oraz MSP 2003 mpp.
DefaultGuid
Uzyskuje lub ustawia Guid domyślnego wpisu w tabeli odniesień.
public string DefaultGuid { get; set; }
Wartość właściwości
ElementType
Uzyskuje lub ustawia, czy atrybut rozszerzony jest powiązany z zadaniem, zasobem lub przypisaniem.
public ElementType ElementType { get; set; }
Wartość właściwości
FieldId
Uzyskuje lub ustawia identyfikator projektu pola niestandardowego. Użyj reprezentacji ciągu stałej z klasy Aspose.Tasks.ExtendedAttributeTask, aby określić właściwość Aspose.Tasks.ExtendedAttributeDefinition.FieldId.
public string FieldId { get; set; }
Wartość właściwości
Przykłady
customFieldDefinition.FieldId = Aspose.Tasks.ExtendedAttributeTask.Number10.ToString("D");
Uwagi
Preferowany sposób ustawienia właściwości Aspose.Tasks.ExtendedAttributeDefinition.FieldId to utworzenie Aspose.Tasks.ExtendedAttributeDefinition za pomocą jednej z dedykowanych metod fabrycznych, takich jak Aspose.Tasks.ExtendedAttributeDefinition.CreateTaskDefinition(Aspose.Tasks.ExtendedAttributeTask,System.String) lub Aspose.Tasks.ExtendedAttributeDefinition.CreateLookupTaskDefinition(Aspose.Tasks.CustomFieldType,Aspose.Tasks.ExtendedAttributeTask,System.String).
FieldName
Uzyskuje nazwę pola niestandardowego.
public string FieldName { get; }
Wartość właściwości
Uwagi
Nie powinno być ustawiane bezpośrednio, zamiast tego utwórz ExtendedAttributeDefinition za pomocą silnie typowanych statycznych metod fabrycznych nazwanych jak Create*Definition().
Formula
Uzyskuje lub ustawia formułę, którą Microsoft Project używa do wypełnienia niestandardowego pola zadania.
public string Formula { get; set; }
Wartość właściwości
GraphicalIndicator
Uzyskuje lub ustawia informacje o wskaźnikach graficznych powiązanych z atrybutem rozszerzonym. Dotyczy formatu MPP.
public GraphicalIndicatorsInfo GraphicalIndicator { get; set; }
Wartość właściwości
Guid
Uzyskuje lub ustawia Guid pola niestandardowego.
public string Guid { get; set; }
Wartość właściwości
Uwagi
Obecnie obsługiwane tylko dla formatu Xml.
LookupUid
Uzyskuje Guid tabeli odniesień powiązanej z polem niestandardowym.
public string LookupUid { get; }
Wartość właściwości
Uwagi
Aby utworzyć pole niestandardowe z odniesieniem, użyj jednej z metod fabrycznych: Aspose.Tasks.ExtendedAttributeDefinition.CreateLookupTaskDefinition(Aspose.Tasks.CustomFieldType,Aspose.Tasks.ExtendedAttributeTask,System.String) lub Aspose.Tasks.ExtendedAttributeDefinition.CreateLookupResourceDefinition(Aspose.Tasks.CustomFieldType,Aspose.Tasks.ExtendedAttributeResource,System.String).
MaxMultiValues
Uzyskuje lub ustawia maksymalną liczbę wartości, które można ustawić w liście wyboru.
public int MaxMultiValues { get; set; }
Wartość właściwości
Uwagi
Obecnie obsługiwane tylko dla formatu Xml.
ParentProject
Uzyskuje projekt nadrzędny dla instancji Aspose.Tasks.ExtendedAttributeDefinition.
public Project ParentProject { get; }
Wartość właściwości
PhoneticsAlias
Uzyskuje lub ustawia fonetyczną wymowę aliasu pola niestandardowego.
public string PhoneticsAlias { get; set; }
Wartość właściwości
Uwagi
Obecnie obsługiwane tylko dla formatu Xml.
RestrictValues
Uzyskuje lub ustawia wartość wskazującą, czy wartości pola niestandardowego są ograniczone do wartości w Aspose.Tasks.ExtendedAttributeDefinition.ValueList.
public bool RestrictValues { get; set; }
Wartość właściwości
RollupType
Uzyskuje lub ustawia sposób obliczania podsumowań.
public RollupType RollupType { get; set; }
Wartość właściwości
Uwagi
Zapis obecnie obsługiwany tylko dla formatu Xml.
SecondaryGuid
Uzyskuje lub ustawia drugi guid atrybutu rozszerzonego.
public string SecondaryGuid { get; set; }
Wartość właściwości
Uwagi
To jest nowe dla właściwości MS Project 2010.
SecondaryPid
Uzyskuje lub ustawia drugi PID pola niestandardowego.
public string SecondaryPid { get; set; }
Wartość właściwości
SummaryRowsCalculationType
Uzyskuje lub ustawia typ obliczenia wartości atrybutu niestandardowego dla wierszy podsumowania.
public SummaryRowsCalculationType SummaryRowsCalculationType { get; set; }
Wartość właściwości
UserDef
Uzyskuje lub ustawia wartość wskazującą, czy pole niestandardowe jest zdefiniowane przez użytkownika.
public bool UserDef { get; set; }
Wartość właściwości
Uwagi
Obecnie obsługiwane tylko dla formatu Xml.
ValueList
Uzyskuje List<Value> ValueList.
public List<value> ValueList { get; }
Wartość właściwości
Uwagi
Gdy wartości atrybutów rozszerzonych są określone jako właściwości elementów w schemacie, mogą być określone zarówno przez wartości, jak i przez odniesienia do wartości zawartych na tej liście. Aplikacje mogą zakładać porządek listy według porządku określonego tutaj. Obecnie obsługiwane dla formatów MSP 2003/2007 Xml oraz MSP 2003 mpp. Nie zmieniaj tej listy bezpośrednio. Zamiast tego użyj metod ExtendedAttributeDefinition.AddLookupValue/RemoveLookupValue.
ValuelistSortOrder
Uzyskuje lub ustawia sposób sortowania list wartości. Wartości to: 0=Malejąco, 1=Rosnąco.
public int ValuelistSortOrder { get; set; }
Wartość właściwości
Uwagi
Obecnie obsługiwane dla formatów MSP 2003/2007 Xml oraz MSP 2003 mpp.
Metody
AddLookupValue(Value)
Dodaje wartość do wewnętrznej listy odniesień. To preferowany sposób manipulacji z Aspose.Tasks.ExtendedAttributeDefinition.ValueList.
public void AddLookupValue(Value value)
Parametry
value
Value
Wartość do dodania do odniesienia.
Przykłady
Użyj tego kodu, aby dodać nową wartość do listy odniesień:
taskTextAttr.AddLookupValue(new Value { Id = 1, Val = "Text value 1", Description = "Text value description 1" });
Uwagi
Ta metoda działa tylko dla instancji Aspose.Tasks.ExtendedAttributeDefinition, które mają Aspose.Tasks.ExtendedAttributeDefinition.CalculationType równe Aspose.Tasks.CalculationType.Lookup.
CreateExtendedAttribute()
Tworzy nowy atrybut rozszerzony z identyfikatorem pola, który jest równy wartości identyfikatora pola tego obiektu.
public ExtendedAttribute CreateExtendedAttribute()
Zwraca
zwraca utworzoną instancję klasy Aspose.Tasks.ExtendedAttribute z identyfikatorem pola, który jest równy wartości identyfikatora pola tego obiektu.
CreateExtendedAttribute(string)
Tworzy nowy atrybut rozszerzony z identyfikatorem pola, który jest równy wartości identyfikatora pola tego obiektu oraz określoną wartością tekstową.
public ExtendedAttribute CreateExtendedAttribute(string textValue)
Parametry
textValue
string
Określona wartość tekstowa.
Zwraca
zwraca utworzoną instancję klasy Aspose.Tasks.ExtendedAttribute z identyfikatorem pola, który jest równy wartości identyfikatora pola tego obiektu.
Wyjątki
Jeśli obecny Aspose.Tasks.ExtendedAttributeDefinition.CfType nie jest ‘Text’.
CreateExtendedAttribute(decimal)
Tworzy nowy atrybut rozszerzony z identyfikatorem pola, który jest równy wartości identyfikatora pola tego obiektu oraz określoną wartością liczbową.
public ExtendedAttribute CreateExtendedAttribute(decimal numericValue)
Parametry
numericValue
decimal
Określona wartość liczbowa.
Zwraca
zwraca utworzoną instancję klasy Aspose.Tasks.ExtendedAttribute z identyfikatorem pola, który jest równy wartości identyfikatora pola tego obiektu.
Wyjątki
Jeśli obecny Aspose.Tasks.ExtendedAttributeDefinition.CfType nie jest ‘Number’ lub ‘Cost’.
CreateExtendedAttribute(DateTime)
Tworzy nowy atrybut rozszerzony z identyfikatorem pola, który jest równy wartości identyfikatora pola tego obiektu oraz określoną wartością daty.
public ExtendedAttribute CreateExtendedAttribute(DateTime dateTimeValue)
Parametry
dateTimeValue
DateTime
Określona wartość daty i godziny.
Zwraca
zwraca utworzoną instancję klasy Aspose.Tasks.ExtendedAttribute z identyfikatorem pola, który jest równy wartości identyfikatora pola tego obiektu.
Wyjątki
Jeśli obecny Aspose.Tasks.ExtendedAttributeDefinition.CfType nie jest ‘Date’, ‘Start’ lub ‘Finish’.
CreateExtendedAttribute(Duration)
Tworzy nowy atrybut rozszerzony z identyfikatorem pola, który jest równy wartości identyfikatora pola tego obiektu oraz określoną wartością czasu trwania.
public ExtendedAttribute CreateExtendedAttribute(Duration durationValue)
Parametry
durationValue
Duration
Określona wartość czasu trwania.
Zwraca
zwraca utworzoną instancję klasy Aspose.Tasks.ExtendedAttribute z identyfikatorem pola, który jest równy wartości identyfikatora pola tego obiektu.
Wyjątki
Jeśli obecny Aspose.Tasks.ExtendedAttributeDefinition.CfType nie jest ‘Duration’.
CreateExtendedAttribute(bool)
Tworzy nowy atrybut rozszerzony z identyfikatorem pola, który jest równy wartości identyfikatora pola tego obiektu oraz określoną wartością flagi.
public ExtendedAttribute CreateExtendedAttribute(bool flagValue)
Parametry
flagValue
bool
Określona wartość flagi.
Zwraca
zwraca utworzoną instancję klasy Aspose.Tasks.ExtendedAttribute z identyfikatorem pola, który jest równy wartości identyfikatora pola tego obiektu.
Wyjątki
Jeśli obecny Aspose.Tasks.ExtendedAttributeDefinition.CfType nie jest ‘Flag’.
CreateExtendedAttribute(Value)
Tworzy nowy atrybut rozszerzony powiązany z określonym elementem Aspose.Tasks.Value.
public ExtendedAttribute CreateExtendedAttribute(Value lookupValue)
Parametry
lookupValue
Value
Określony element Aspose.Tasks.Value.
Zwraca
zwraca utworzoną instancję klasy Aspose.Tasks.ExtendedAttribute powiązaną z określonym elementem Aspose.Tasks.Value.
Przykłady
Użyj tego kodu, aby utworzyć nowy Aspose.Tasks.ExtendedAttribute przy użyciu określonej wartości:
taskTextAttr.AddLookupValue(value1);
taskTextAttr.AddLookupValue(value2);
var extendedAttribute = taskTextAttr.CreateExtendedAttribute(value2);
Uwagi
lookupValue
powinien być wcześniej dodany do Aspose.Tasks.ExtendedAttributeDefinition za pomocą metody Aspose.Tasks.ExtendedAttributeDefinition.AddLookupValue(Aspose.Tasks.Value).
CreateLookupResourceDefinition(ExtendedAttributeResource, string)
Metoda fabryczna, która tworzy definicję atrybutu rozszerzonego z odniesieniem.
Ma Aspose.Tasks.ExtendedAttributeDefinition.CalculationType równe Aspose.Tasks.CalculationType.Lookup i może być używana tylko w zasobach.
Należy określić fieldId
i alias
podczas wywoływania tej metody.
Typ pola jest wnioskowany z identyfikatora pola.
public static ExtendedAttributeDefinition CreateLookupResourceDefinition(ExtendedAttributeResource fieldId, string alias)
Parametry
fieldId
ExtendedAttributeResource
Określony identyfikator pola Aspose.Tasks.ExtendedAttributeResource.
alias
string
Określony alias System.String.
Zwraca
Utworzona instancja klasy Aspose.Tasks.ExtendedAttributeDefinition z określonym fieldId
i alias
.
Przykłady
Użyj tego przykładu, aby utworzyć definicję pola niestandardowego dla zasobu z odniesieniem, a następnie wypełnić ją wartościami tekstowymi:
var resourceTextAttr = ExtendedAttributeDefinition.CreateLookupResourceDefinition(ExtendedAttributeResource.Text27, "Moje pole niestandardowe");
resourceTextAttr.AddLookupValue(new Value { Id = 1, Val = "Wartość tekstowa 1", Description = "Opis wartości tekstowej 1" });
resourceTextAttr.AddLookupValue(new Value { Id = 2, Val = "Wartość tekstowa 2", Description = "Opis wartości tekstowej 2" });
project.ExtendedAttributes.Add(resourceTextAttr);
CreateLookupResourceDefinition(CustomFieldType, ExtendedAttributeResource, string)
Metoda fabryczna, która tworzy definicję atrybutu rozszerzonego z odniesieniem.
Ma Aspose.Tasks.ExtendedAttributeDefinition.CalculationType równe Aspose.Tasks.CalculationType.Lookup i może być używana tylko w zasobach.
Należy określić customFieldType
, fieldId
i alias
podczas wywoływania tej metody.
public static ExtendedAttributeDefinition CreateLookupResourceDefinition(CustomFieldType customFieldType, ExtendedAttributeResource fieldId, string alias)
Parametry
customFieldType
CustomFieldType
Określony typ Aspose.Tasks.CustomFieldType.
fieldId
ExtendedAttributeResource
Określony identyfikator pola Aspose.Tasks.ExtendedAttributeResource.
alias
string
Określony alias System.String.
Zwraca
Utworzona instancja klasy Aspose.Tasks.ExtendedAttributeDefinition z określonym customFieldType
, fieldId
i alias
.
Przykłady
Użyj tego przykładu, aby utworzyć definicję pola niestandardowego dla zasobu z odniesieniem, a następnie wypełnić ją wartościami tekstowymi:
var resourceTextAttr = ExtendedAttributeDefinition.CreateLookupResourceDefinition(CustomFieldType.Text, ExtendedAttributeResource.Text27, "Moje pole niestandardowe");
resourceTextAttr.AddLookupValue(new Value { Id = 1, Val = "Wartość tekstowa 1", Description = "Opis wartości tekstowej 1" });
resourceTextAttr.AddLookupValue(new Value { Id = 2, Val = "Wartość tekstowa 2", Description = "Opis wartości tekstowej 2" });
project.ExtendedAttributes.Add(resourceTextAttr);
CreateLookupTaskDefinition(ExtendedAttributeTask, string)
Metoda fabryczna, która tworzy definicję atrybutu rozszerzonego z odniesieniem.
Ma Aspose.Tasks.ExtendedAttributeDefinition.CalculationType równe Aspose.Tasks.CalculationType.Lookup i może być używana tylko w zadaniach.
Należy określić fieldId
i alias
podczas wywoływania tej metody.
Typ pola jest wnioskowany z identyfikatora pola.
public static ExtendedAttributeDefinition CreateLookupTaskDefinition(ExtendedAttributeTask fieldId, string alias)
Parametry
fieldId
ExtendedAttributeTask
Określony identyfikator pola Aspose.Tasks.ExtendedAttributeTask.
alias
string
Określony alias System.String.
Zwraca
Utworzona instancja klasy Aspose.Tasks.ExtendedAttributeDefinition z określonym fieldId
i alias
.
Przykłady
Użyj tego przykładu, aby utworzyć definicję pola niestandardowego dla zadania z odniesieniem, a następnie wypełnić ją wartościami tekstowymi:
var taskTextAttr = ExtendedAttributeDefinition.CreateLookupTaskDefinition(ExtendedAttributeTask.Text27, "Moje pole niestandardowe");
taskTextAttr.AddLookupValue(new Value { Id = 1, Val = "Wartość tekstowa 1", Description = "Opis wartości tekstowej 1" });
taskTextAttr.AddLookupValue(new Value { Id = 2, Val = "Wartość tekstowa 2", Description = "Opis wartości tekstowej 2" });
project.ExtendedAttributes.Add(taskTextAttr);
CreateLookupTaskDefinition(CustomFieldType, ExtendedAttributeTask, string)
Metoda fabryczna, która tworzy definicję atrybutu rozszerzonego z odniesieniem.
Ma Aspose.Tasks.ExtendedAttributeDefinition.CalculationType równe Aspose.Tasks.CalculationType.Lookup i może być używana tylko w zadaniach.
Należy określić customFieldType
, fieldId
i alias
podczas wywoływania tej metody.
public static ExtendedAttributeDefinition CreateLookupTaskDefinition(CustomFieldType customFieldType, ExtendedAttributeTask fieldId, string alias)
Parametry
customFieldType
CustomFieldType
Określony typ Aspose.Tasks.CustomFieldType.
fieldId
ExtendedAttributeTask
Określony identyfikator pola Aspose.Tasks.ExtendedAttributeTask.
alias
string
Określony alias System.String.
Zwraca
Utworzona instancja klasy Aspose.Tasks.ExtendedAttributeDefinition z określonym customFieldType
, fieldId
i alias
.
Przykłady
Użyj tego przykładu, aby utworzyć definicję pola niestandardowego dla zadania z odniesieniem, a następnie wypełnić ją wartościami tekstowymi:
var taskTextAttr = ExtendedAttributeDefinition.CreateLookupTaskDefinition(CustomFieldType.Text, ExtendedAttributeTask.Text27, "Moje pole niestandardowe");
taskTextAttr.AddLookupValue(new Value { Id = 1, Val = "Wartość tekstowa 1", Description = "Opis wartości tekstowej 1" });
taskTextAttr.AddLookupValue(new Value { Id = 2, Val = "Wartość tekstowa 2", Description = "Opis wartości tekstowej 2" });
project.ExtendedAttributes.Add(taskTextAttr);
CreateResourceDefinition(CustomFieldType, ExtendedAttributeResource, string)
Metoda fabryczna, która tworzy prostą definicję atrybutu rozszerzonego, która w Microsoft Project jest wyświetlana jako “Brak”.
Ma Aspose.Tasks.ExtendedAttributeDefinition.CalculationType równe Aspose.Tasks.CalculationType.None i może być używana tylko w zasobach.
Należy określić customFieldType
, fieldId
i alias
podczas wywoływania tej metody.
public static ExtendedAttributeDefinition CreateResourceDefinition(CustomFieldType customFieldType, ExtendedAttributeResource fieldId, string alias)
Parametry
customFieldType
CustomFieldType
Określony typ Aspose.Tasks.CustomFieldType.
fieldId
ExtendedAttributeResource
Określony identyfikator pola Aspose.Tasks.ExtendedAttributeResource.
alias
string
Określony alias System.String.
Zwraca
Utworzona instancja klasy Aspose.Tasks.ExtendedAttributeDefinition z określonym customFieldType
, fieldId
i alias
.
Przykłady
Użyj tego przykładu, aby utworzyć definicję pola tekstowego niestandardowego:
var resourceTextAttr = ExtendedAttributeDefinition.CreateResourceDefinition(CustomFieldType.Text, ExtendedAttributeResource.Text27, "Moje pole niestandardowe");
project.ExtendedAttributes.Add(resourceTextAttr);
CreateResourceDefinition(ExtendedAttributeResource, string)
Metoda fabryczna, która tworzy prostą definicję atrybutu rozszerzonego, która w Microsoft Project jest wyświetlana jako “Brak”.
Ma Aspose.Tasks.ExtendedAttributeDefinition.CalculationType równe Aspose.Tasks.CalculationType.None i może być używana tylko w zasobach.
Należy określić fieldId
i alias
podczas wywoływania tej metody.
Typ pola jest wnioskowany z identyfikatora pola.
public static ExtendedAttributeDefinition CreateResourceDefinition(ExtendedAttributeResource fieldId, string alias)
Parametry
fieldId
ExtendedAttributeResource
Określony identyfikator pola Aspose.Tasks.ExtendedAttributeResource.
alias
string
Określony alias System.String.
Zwraca
Utworzona instancja klasy Aspose.Tasks.ExtendedAttributeDefinition z określonym fieldId
i alias
.
Przykłady
Użyj tego przykładu, aby utworzyć definicję pola tekstowego niestandardowego:
var resourceTextAttr = ExtendedAttributeDefinition.CreateResourceDefinition(ExtendedAttributeResource.Text27, "Moje pole niestandardowe");
project.ExtendedAttributes.Add(resourceTextAttr);
CreateTaskDefinition(CustomFieldType, ExtendedAttributeTask, string)
Metoda fabryczna, która tworzy prostą definicję atrybutu rozszerzonego, która w Microsoft Project jest wyświetlana jako “Brak”.
Ma Aspose.Tasks.ExtendedAttributeDefinition.CalculationType równe Aspose.Tasks.CalculationType.None i może być używana tylko w zadaniach.
Należy określić customFieldType
, fieldId
i alias
podczas wywoływania tej metody.
public static ExtendedAttributeDefinition CreateTaskDefinition(CustomFieldType customFieldType, ExtendedAttributeTask fieldId, string alias)
Parametry
customFieldType
CustomFieldType
Określony typ Aspose.Tasks.CustomFieldType.
fieldId
ExtendedAttributeTask
Określony identyfikator pola Aspose.Tasks.ExtendedAttributeTask.
alias
string
Określony alias System.String.
Zwraca
Utworzona instancja klasy Aspose.Tasks.ExtendedAttributeDefinition z określonym customFieldType
, fieldId
i alias
.
Przykłady
Użyj tego przykładu, aby utworzyć definicję pola tekstowego niestandardowego:
var taskTextAttr = ExtendedAttributeDefinition.CreateTaskDefinition(CustomFieldType.Text, ExtendedAttributeTask.Text27, "Moje pole niestandardowe");
project.ExtendedAttributes.Add(taskTextAttr);
CreateTaskDefinition(ExtendedAttributeTask, string)
Metoda fabryczna, która tworzy prostą definicję atrybutu rozszerzonego, która w Microsoft Project jest wyświetlana jako “Brak”.
Ma Aspose.Tasks.ExtendedAttributeDefinition.CalculationType równe Aspose.Tasks.CalculationType.None i może być używana tylko w zadaniach.
Należy określić fieldId
i alias
podczas wywoływania tej metody.
Typ pola jest wnioskowany z identyfikatora pola.
public static ExtendedAttributeDefinition CreateTaskDefinition(ExtendedAttributeTask fieldId, string alias)
Parametry
fieldId
ExtendedAttributeTask
Określony identyfikator pola Aspose.Tasks.ExtendedAttributeTask.
alias
string
Określony alias System.String.
Zwraca
Utworzona instancja klasy Aspose.Tasks.ExtendedAttributeDefinition z określonym fieldId
i alias
.
Przykłady
Użyj tego przykładu, aby utworzyć definicję pola tekstowego niestandardowego:
var taskTextAttr = ExtendedAttributeDefinition.CreateTaskDefinition(ExtendedAttributeTask.Text27, "Moje pole niestandardowe");
project.ExtendedAttributes.Add(taskTextAttr);
Equals(object)
Zwraca flagę wskazującą, czy ta instancja jest równa określonemu obiektowi.
public override bool Equals(object obj)
Parametry
obj
object
określony obiekt do porównania z tą instancją.
Zwraca
flaga wskazująca, czy ta instancja jest równa określonemu obiektowi.
GetHashCode()
Zwraca kod hash dla instancji klasy Aspose.Tasks.ExtendedAttributeDefinition.
public override int GetHashCode()
Zwraca
kod hash dla tego obiektu.
RemoveLookupValue(Value)
Usuwa wartość z wewnętrznej listy odniesień. To preferowany sposób manipulacji z Aspose.Tasks.ExtendedAttributeDefinition.ValueList.
public void RemoveLookupValue(Value value)
Parametry
value
Value
Wartość do usunięcia z odniesienia.
Uwagi
Ta metoda działa tylko dla instancji Aspose.Tasks.ExtendedAttributeDefinition, które mają Aspose.Tasks.ExtendedAttributeDefinition.CalculationType równe Aspose.Tasks.CalculationType.Lookup.