5 writes to viewTabs
System.Windows.Forms (5)
winforms\Managed\System\WinForms\PropertyGrid.cs (5)
1909
viewTabs
= newTabs;
2219
viewTabs
= null;
4056
viewTabs
= newTabs;
4112
viewTabs
= newTabs;
4147
viewTabs
= newTabs;
87 references to viewTabs
System.Windows.Forms (87)
winforms\Managed\System\WinForms\PropertyGrid.cs (87)
1271
Type tabType = selectedViewTab == -1 ? null :
viewTabs
[selectedViewTab].GetType();
1276
for (int i = 0; i <
viewTabs
.Length;i++) {
1277
if (
viewTabs
[i].GetType() == tabType && viewTabButtons[i].Visible) {
1287
if (showEvents &&
viewTabs
!= null &&
viewTabs
.Length > EVENTS && (
viewTabs
[EVENTS] is EventsTab)) {
1317
events = ((EventsTab)
viewTabs
[EVENTS]).GetProperties(tempObj, attrs);
1363
if (nButton <
viewTabs
.Length && (nButton == PROPERTIES || viewTabButtons[nButton].Visible)) {
1409
Debug.Assert(selectedViewTab <
viewTabs
.Length && selectedViewTab >= 0, "Invalid tab selection!");
1410
return
viewTabs
[selectedViewTab];
1843
if (
viewTabs
!= null) {
1845
for (int i = 0; i <
viewTabs
.Length; i++) {
1846
Debug.Assert(
viewTabs
[i] != null, "Null item in tab array!");
1847
if (tabType ==
viewTabs
[i].GetType()) {
1848
tab =
viewTabs
[i];
1876
if (
viewTabs
!= null) {
1877
tabIndex =
viewTabs
.Length;
1889
for (int i = 1; i <
viewTabs
.Length; i++) {
1892
if (
viewTabs
[i] is EventsTab) {
1896
if (String.Compare(tab.TabName,
viewTabs
[i].TabName, false, CultureInfo.InvariantCulture) < 0) {
1905
PropertyTab[] newTabs = new PropertyTab[
viewTabs
.Length + 1];
1906
Array.Copy(
viewTabs
, 0, newTabs, 0, tabIndex);
1907
Array.Copy(
viewTabs
, tabIndex, newTabs, tabIndex + 1,
viewTabs
.Length - tabIndex);
1919
Debug.Assert(
viewTabs
!= null, "Tab array destroyed!");
2215
if (
viewTabs
!= null) {
2216
for (int i = 0; i <
viewTabs
.Length; i++) {
2217
viewTabs
[i].Dispose();
2393
Debug.Assert(
viewTabs
!= null, "Invalid tab array");
2394
Debug.Assert(
viewTabs
.Length == viewTabScopes.Length && viewTabScopes.Length == viewTabButtons.Length,"Uh oh, tab arrays aren't all the same length! tabs=" +
viewTabs
.Length.ToString(CultureInfo.InvariantCulture) + ", scopes=" + viewTabScopes.Length.ToString(CultureInfo.InvariantCulture) + ", buttons=" + viewTabButtons.Length.ToString(CultureInfo.InvariantCulture));
2399
for (int i = 1; i <
viewTabs
.Length; i++) {
2400
Debug.Assert(
viewTabs
[i] != null, "Invalid tab array entry");
2407
if (!
viewTabs
[i].CanExtend(GetUnwrappedObject(j)))
2453
foreach (PropertyTab tab in
viewTabs
) {
3912
if (clearCached && selectedViewTab != -1 &&
viewTabs
!= null) {
3913
PropertyTab tab =
viewTabs
[selectedViewTab];
3979
for (int i = 0; i <
viewTabs
.Length; i++) {
3980
if (tabType ==
viewTabs
[i].GetType()) {
3981
tab =
viewTabs
[i];
4036
if (viewTabButtons == null ||
viewTabs
== null || viewTabScopes == null) {
4042
for (int i =
viewTabs
.Length-1; i >= 0; i--) {
4053
PropertyTab[] newTabs = new PropertyTab[
viewTabs
.Length - 1];
4054
Array.Copy(
viewTabs
, 0, newTabs, 0, i);
4055
Array.Copy(
viewTabs
, i + 1, newTabs, i,
viewTabs
.Length - i - 1);
4070
Debug.Assert(
viewTabs
!= null &&
viewTabs
.Length > 0, "Holy Moly! We don't have any tabs left!");
4076
for (int i = 0; i <
viewTabs
.Length; i++) {
4077
viewTabs
[i].Components = new Object[0];
4083
Debug.Assert(
viewTabs
!= null, "Tab array destroyed!");
4085
if (tabIndex >=
viewTabs
.Length || tabIndex < 0) {
4109
PropertyTab[] newTabs = new PropertyTab[
viewTabs
.Length - 1];
4110
Array.Copy(
viewTabs
, 0, newTabs, 0, tabIndex);
4111
Array.Copy(
viewTabs
, tabIndex + 1, newTabs, tabIndex,
viewTabs
.Length - tabIndex - 1);
4131
for (int i = 0; i <
viewTabs
.Length; i++) {
4132
if (tabType ==
viewTabs
[i].GetType()) {
4133
tab =
viewTabs
[i];
4144
PropertyTab[] newTabs = new PropertyTab[
viewTabs
.Length - 1];
4145
Array.Copy(
viewTabs
, 0, newTabs, 0, tabIndex);
4146
Array.Copy(
viewTabs
, tabIndex + 1, newTabs, tabIndex,
viewTabs
.Length - tabIndex - 1);
4280
oldTab =
viewTabs
[selectedViewTab];
4290
OnPropertyTabChanged(new PropertyTabChangedEventArgs(oldTab,
viewTabs
[i]));
4301
Debug.Assert(
viewTabs
[PROPERTIES].GetType() == DefaultTabType, "First item is not property tab!");
4311
if (state >= (
viewTabs
.Length * viewSortButtons.Length)) {
4315
state = (
viewTabs
.Length * viewSortButtons.Length) - 1;
4335
Debug.Assert(tab <
viewTabs
.Length, "Trying to select invalid tab!");
4457
viewTabButtons = new ToolStripButton[
viewTabs
.Length];
4458
bool doAdd =
viewTabs
.Length > 1;
4463
for (i = 0; i <
viewTabs
.Length; i++) {
4465
b =
viewTabs
[i].Bitmap;
4466
viewTabButtons[i] = CreatePushButton(
viewTabs
[i].TabName, AddImage(b), ehViewTab, true);
4538
if (
viewTabs
!= null &&
viewTabs
.Length > EVENTS && (
viewTabs
[EVENTS] is EventsTab)) {
4702
if (
viewTabs
== null) {
4706
string tabName =
viewTabs
[selectedViewTab].TabName + propertySortValue.ToString();
5005
for (int i = 0; i <
viewTabs
.Length;i++) {
5006
if (
viewTabs
[i].GetType().FullName == tabTypeName && viewTabButtons[i].Visible) {
5103
return owner.
viewTabs
.Length;
5132
return owner.
viewTabs
[index];
5177
if (owner.
viewTabs
.Length > 0) {
5178
System.Array.Copy(owner.
viewTabs
, 0, dest, index, owner.
viewTabs
.Length);
5190
return owner.
viewTabs
.GetEnumerator();