2 writes to _owner
System.Web (2)
UI\WebControls\TreeNode.cs (2)
63
_owner
= owner;
1643
_owner
= owner;
151 references to _owner
System.Web (151)
UI\WebControls\TreeNode.cs (151)
209
else if (
_owner
!= null) {
239
if (
_owner
!= null &&
_owner
.DesignMode) return;
245
if (
_owner
== null) {
249
else if (!
_owner
.LoadingNodeState) {
254
if (
_owner
!= null) {
255
_owner
.RaiseTreeNodeExpanded(this);
259
if (
_owner
!= null) {
260
_owner
.RaiseTreeNodeCollapsed(this);
394
return
_owner
;
508
if (
_owner
== null) {
514
_owner
.SetSelectedNode(this);
516
else if (this ==
_owner
.SelectedNode) {
517
_owner
.SetSelectedNode(null);
524
if (
_owner
.ShowExpandCollapse) {
525
return
_owner
.CreateNodeTextId(Index);
528
return
_owner
.CreateNodeId(Index);
653
Value : parentPath +
_owner
.PathSeparator + Value;
759
if (
_owner
.IsNotIE) {
761
_owner
.ClientDataObjectID + "," +
775
_owner
.ClientDataObjectID + "," +
787
if (
_owner
.Page != null) {
788
_owner
.Page.ClientScript.RegisterForEventValidation(
_owner
.UniqueID,
806
return ((
_owner
.ShowCheckBoxes & type) != 0);
815
if (
_owner
.IsNotIE) {
817
_owner
.ClientDataObjectID + "," +
825
_owner
.ClientDataObjectID + "," +
848
if (
_owner
== null) {
854
TreeNodeCollection checkedNodes =
_owner
.CheckedNodes;
856
_owner
.CheckedNodes.Add(this);
860
_owner
.CheckedNodes.Remove(this);
871
if (
_owner
!= null) {
872
_owner
.PopulateNode(this);
890
myId =
_owner
.CreateNodeId(Index);
900
TreeNodeStyle mergedStyle =
_owner
.GetStyle(this);
926
writer.AddStyleAttribute(HtmlTextWriterStyle.Width,
_owner
.NodeIndent.ToString(CultureInfo.InvariantCulture) + "px");
930
if (
_owner
.ShowLines && !isLast[i]) {
931
writer.AddAttribute(HtmlTextWriterAttribute.Src,
_owner
.GetImageUrl(TreeView.IImageIndex));
945
writer.Write("<div style=\"width:" +
_owner
.NodeIndent.ToString(CultureInfo.InvariantCulture) + "px;height:1px\">");
946
if (
_owner
.ShowLines && !isLast[i]) {
947
writer.AddAttribute(HtmlTextWriterAttribute.Src,
_owner
.GetImageUrl(TreeView.IImageIndex));
960
bool canExpand = (PopulateOnDemand || (ChildNodes.Count > 0)) &&
_owner
.ShowExpandCollapse;
968
if (
_owner
.ShowLines) {
973
imageUrl =
_owner
.GetImageUrl(TreeView.DashMinusImageIndex);
974
imageToolTip =
_owner
.CollapseImageToolTip;
979
imageUrl =
_owner
.GetImageUrl(TreeView.LMinusImageIndex);
980
imageToolTip =
_owner
.CollapseImageToolTip;
986
imageUrl =
_owner
.GetImageUrl(TreeView.LMinusImageIndex);
987
imageToolTip =
_owner
.CollapseImageToolTip;
991
imageUrl =
_owner
.GetImageUrl(TreeView.MinusImageIndex);
992
imageToolTip =
_owner
.CollapseImageToolTip;
996
if (
_owner
.ShowLines) {
1001
imageUrl =
_owner
.GetImageUrl(TreeView.DashPlusImageIndex);
1002
imageToolTip =
_owner
.ExpandImageToolTip;
1007
imageUrl =
_owner
.GetImageUrl(TreeView.LPlusImageIndex);
1008
imageToolTip =
_owner
.ExpandImageToolTip;
1014
imageUrl =
_owner
.GetImageUrl(TreeView.LPlusImageIndex);
1015
imageToolTip =
_owner
.ExpandImageToolTip;
1019
imageUrl =
_owner
.GetImageUrl(TreeView.PlusImageIndex);
1020
imageToolTip =
_owner
.ExpandImageToolTip;
1025
if (
_owner
.ShowLines) {
1030
imageUrl =
_owner
.GetImageUrl(TreeView.DashImageIndex);
1035
imageUrl =
_owner
.GetImageUrl(TreeView.LImageIndex);
1041
imageUrl =
_owner
.GetImageUrl(TreeView.LImageIndex);
1044
else if (
_owner
.ShowExpandCollapse) {
1045
imageUrl =
_owner
.GetImageUrl(TreeView.NoExpandImageIndex);
1052
if (
_owner
.ShowLines) {
1057
imageUrl =
_owner
.GetImageUrl(TreeView.RMinusImageIndex);
1058
imageToolTip =
_owner
.CollapseImageToolTip;
1063
imageUrl =
_owner
.GetImageUrl(TreeView.TMinusImageIndex);
1064
imageToolTip =
_owner
.CollapseImageToolTip;
1070
imageUrl =
_owner
.GetImageUrl(TreeView.TMinusImageIndex);
1071
imageToolTip =
_owner
.CollapseImageToolTip;
1075
imageUrl =
_owner
.GetImageUrl(TreeView.MinusImageIndex);
1076
imageToolTip =
_owner
.CollapseImageToolTip;
1080
if (
_owner
.ShowLines) {
1085
imageUrl =
_owner
.GetImageUrl(TreeView.RPlusImageIndex);
1086
imageToolTip =
_owner
.ExpandImageToolTip;
1091
imageUrl =
_owner
.GetImageUrl(TreeView.TPlusImageIndex);
1092
imageToolTip =
_owner
.ExpandImageToolTip;
1098
imageUrl =
_owner
.GetImageUrl(TreeView.TPlusImageIndex);
1099
imageToolTip =
_owner
.ExpandImageToolTip;
1103
imageUrl =
_owner
.GetImageUrl(TreeView.PlusImageIndex);
1104
imageToolTip =
_owner
.ExpandImageToolTip;
1109
if (
_owner
.ShowLines) {
1114
imageUrl =
_owner
.GetImageUrl(TreeView.RImageIndex);
1119
imageUrl =
_owner
.GetImageUrl(TreeView.TImageIndex);
1125
imageUrl =
_owner
.GetImageUrl(TreeView.TImageIndex);
1128
else if (
_owner
.ShowExpandCollapse) {
1129
imageUrl =
_owner
.GetImageUrl(TreeView.NoExpandImageIndex);
1140
nodeImageUrl =
_owner
.ResolveClientUrl(ImageUrl);
1143
if ((depth <
_owner
.LevelStyles.Count) && (
_owner
.LevelStyles[depth] != null) && mergedStyle.ImageUrl.Length > 0) {
1144
nodeImageUrl =
_owner
.GetLevelImageUrl(depth);
1149
nodeImageUrl =
_owner
.GetImageUrl(TreeView.RootImageIndex);
1152
nodeImageUrl =
_owner
.GetImageUrl(TreeView.ParentImageIndex);
1155
nodeImageUrl =
_owner
.GetImageUrl(TreeView.LeafImageIndex);
1172
if (
_owner
.RenderClientScript && !
_owner
.CustomExpandCollapseHandlerExists) {
1177
if (
_owner
.PopulateNodesFromClient) {
1179
throw new InvalidOperationException(SR.GetString(SR.TreeView_PopulateOnlyEmptyNodes,
_owner
.ID));
1186
if (
_owner
.Page != null) {
1187
href =
_owner
.Page.ClientScript.GetPostBackClientHyperlink(
_owner
,
1199
if (
_owner
.Page != null) {
1200
href =
_owner
.Page.ClientScript.GetPostBackClientHyperlink(
_owner
, "t" + InternalValuePath, true);
1255
anchorAttributes.Add(
_owner
.ResolveClientUrl(NavigateUrl));
1260
target =
_owner
.Target;
1268
if (
_owner
.RenderClientScript) {
1271
if (
_owner
.Page != null &&
_owner
.Page.SupportsStyleSheets &&
1275
"TreeView_SelectNode(" +
_owner
.ClientDataObjectID +
1284
_owner
.Page.ClientScript.GetPostBackClientHyperlink(
_owner
, "t" + InternalValuePath, true, true));
1286
else if (!
_owner
.CustomExpandCollapseHandlerExists && canExpand) {
1302
if (
_owner
.RenderClientScript && (SelectAction == TreeNodeSelectAction.Expand) && !
_owner
.CustomExpandCollapseHandlerExists) {
1305
if (
_owner
.PopulateNodesFromClient) {
1316
if (
_owner
.Page != null) {
1317
href =
_owner
.Page.ClientScript.GetPostBackClientHyperlink(
1318
_owner
, "t" + InternalValuePath, true, true);
1334
if (
_owner
.Page != null) {
1335
string href =
_owner
.Page.ClientScript.GetPostBackClientHyperlink(
1336
_owner
, "s" + InternalValuePath, true, true);
1339
if (
_owner
.RenderClientScript) {
1341
anchorAttributes.Add("TreeView_SelectNode(" +
_owner
.ClientDataObjectID +
1397
if (!
_owner
.NodeWrap) {
1401
if (
_owner
.Page != null &&
_owner
.Page.SupportsStyleSheets) {
1402
string styleClass =
_owner
.GetCssClassName(this, false);
1413
if (
_owner
.EnableHover && (SelectAction != TreeNodeSelectAction.None)) {
1414
writer.AddAttribute("onmouseover", "TreeView_HoverNode(" +
_owner
.ClientDataObjectID + ", this)");
1431
if (!
_owner
.Enabled && (
_owner
.RenderingCompatibility >= VersionUtil.Framework40)
1446
if (
_owner
.Page != null &&
_owner
.Page.SupportsStyleSheets) {
1448
string styleClass =
_owner
.GetCssClassName(this, true, out renderInlineBorder);
1477
if (!
_owner
.AccessKeyRendered &&
_owner
.AccessKey.Length != 0) {
1478
writer.AddAttribute(HtmlTextWriterAttribute.Accesskey,
_owner
.AccessKey, true);
1479
_owner
.AccessKeyRendered = true;
1515
if (
_owner
.RenderClientScript) {
1541
TreeNodeStyle mergedStyle =
_owner
.GetStyle(this);
1660
if (
_owner
!= null) {
1664
TreeNodeCollection checkedNodes =
_owner
.CheckedNodes;
1666
_owner
.CheckedNodes.Add(this);
1670
_owner
.CheckedNodes.Remove(this);
1676
node.SetOwner(
_owner
);
1702
if (
_owner
== null) {