FieldDictionaryAddTextured Method (String, Color4f, String, Boolean, Int32) |
Add a new Color4fField to the dictionary. This overload will cause the
field to be tagged as "textured" so that the texturing UI will appear
in automatic UIs.
Namespace:
Rhino.Render.Fields
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 7.3
Syntax public Color4fField AddTextured(
string key,
Color4f value,
string prompt,
bool treatAsLinear,
int sectionId
)
Public Function AddTextured (
key As String,
value As Color4f,
prompt As String,
treatAsLinear As Boolean,
sectionId As Integer
) As Color4fField
Parameters
- key
- Type: SystemString
Key name for the field value to add. See important note above. - value
- Type: Rhino.DisplayColor4f
Initial value for this field. - prompt
- Type: SystemString
Prompt to display in the user interface (Content Browsers) if this
is null or an empty string the this field is a data only field and will
not appear in the user interface.
- treatAsLinear
- Type: SystemBoolean
Determines whether the texture in this slot will be treated as linear by rendering engines (ie - not gamma packed). - sectionId
- Type: SystemInt32
The id of the section containing the field
Return Value
Type:
Color4fField[Missing <returns> documentation for "M:Rhino.Render.Fields.FieldDictionary.AddTextured(System.String,Rhino.Display.Color4f,System.String,System.Boolean,System.Int32)"]
Exceptions Exception | Condition |
---|
ArgumentException |
An element with the same key already exists in the dictionary
|
See Also