File: TreeNodeAttribute.xml

package info (click to toggle)
gtk-sharp3 2.99.3-4.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 25,488 kB
  • sloc: xml: 308,885; cs: 38,796; sh: 11,336; perl: 1,295; makefile: 1,099; ansic: 903
file content (108 lines) | stat: -rw-r--r-- 4,114 bytes parent folder | download | duplicates (5)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<Type Name="TreeNodeAttribute" FullName="Gtk.TreeNodeAttribute">
  <TypeSignature Language="C#" Maintainer="Mike Kestner" Value="public sealed class TreeNodeAttribute : Attribute" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit TreeNodeAttribute extends System.Attribute" />
  <AssemblyInfo>
    <AssemblyName>gtk-sharp</AssemblyName>
    <AssemblyPublicKey>
    </AssemblyPublicKey>
  </AssemblyInfo>
  <ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
  <Base>
    <BaseTypeName>System.Attribute</BaseTypeName>
  </Base>
  <Interfaces />
  <Attributes>
    <Attribute>
      <AttributeName>System.AttributeUsage(System.AttributeTargets.Class)</AttributeName>
    </Attribute>
  </Attributes>
  <Docs>
    <summary>An attribute to specify tree node information of a class.</summary>
    <remarks>
      <para>
        This attribute can be applied to a class which implements the 
        <see cref="T:Gtk.ITreeNode" /> interface to provide additional information 
	about the node type to the <see cref="T:Gtk.NodeStore" /> which will contain
	the nodes.
      </para>
      <para>
        In the following example, the class MyTreeNode is tagged as 
        a tree node with 3 columns:
        <example><code lang="C#">
	[TreeNode(ColumnCount=3)]
	public class MyTreeNode : ITreeNode {

	...

	}
          </code></example></para>
      <para>
        In the following example, the class MyListNode is tagged as 
        a node with 2 columns and no child nodes:
        <example><code lang="C#">
	[TreeNode(ColumnCount=2, ListOnly=true)]
	public class MyListNode : ITreeNode {

	...

	}
          </code></example></para>
    </remarks>
  </Docs>
  <Members>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public TreeNodeAttribute ();" />
      <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
      <MemberType>Constructor</MemberType>
      <ReturnValue />
      <Parameters />
      <Docs>
        <summary>TreeNodeAttribute constructor</summary>
        <remarks>Instantiates a <see cref="T:Gtk.TreeNodeAttribute" /></remarks>
      </Docs>
    </Member>
    <Member MemberName="ColumnCount">
      <MemberSignature Language="C#" Value="public int ColumnCount { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance int32 ColumnCount" />
      <MemberType>Property</MemberType>
      <Attributes>
        <Attribute>
          <AttributeName>System.Obsolete("This is no longer needed; it gets detected by Gtk#")</AttributeName>
        </Attribute>
      </Attributes>
      <ReturnValue>
        <ReturnType>System.Int32</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        <summary>ColumnCount named value.</summary>
        <value>a <see cref="T:System.Int32" /></value>
        <remarks>
	  Specifies the number of columns the node exposes. A 
	  <see cref="T:Gtk.TreeNodeValueAttribute" /> 
	  should be added to each of the properties of the class which represent
	  the individual column values.
        </remarks>
      </Docs>
    </Member>
    <Member MemberName="ListOnly">
      <MemberSignature Language="C#" Value="public bool ListOnly { get; set; }" />
      <MemberSignature Language="ILAsm" Value=".property instance bool ListOnly" />
      <MemberType>Property</MemberType>
      <ReturnValue>
        <ReturnType>System.Boolean</ReturnType>
      </ReturnValue>
      <Parameters />
      <Docs>
        <summary>ListOnly named value.</summary>
        <value>a <see cref="T:System.Boolean" /></value>
        <remarks>
	  Specifies if the node can have children. For list views, this tells the
	  NodeStore that it is non-hierarchical and it can expose flags so that the
	  NodeView doesn't include space for expanders in the column layout.
	</remarks>
        <since version="Gtk# 2.4" />
      </Docs>
    </Member>
  </Members>
</Type>