'宣言 Public Enum CalendarLookCategories Inherits System.Enum
public enum CalendarLookCategories : System.Enum
メンバ | 解説 |
---|---|
All | すべてのプロパティとコレクション。 |
AppearancesCollection | Appearancesコレクション。 |
DateCollections | 日付に関連したコレクション(DaysOfWeekLookやMonthsOfYearLookなど)。 |
DaysOfMonthLook | DaysOfMonthLookコレクション。 |
DaysOfWeekLook | DaysOfWeekLookコレクション。 |
DaysOfYearLook | DaysOfYearLookコレクション。 |
General | コンポーネントレベルのすべてのプロパティ。 |
MonthsOfYearLook | MonthsOfYearLookコレクション。 |
None | カスタマイズオプションは使用できません。これはフラグ型列挙体のため、Noneは列挙体の他の値と組み合わされていない場合のみ有効です。 |
WeeksOfYearLook | WeeksOfYearLookコレクション。 |
Years | 日付固有のすべてのオブジェクト(DayLookやYearLookなど)。 |
Imports System.Diagnostics Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click Try Dim stream As New FileStream("C:\\Layout.bin", FileMode.OpenOrCreate) stream.Seek(0, SeekOrigin.Begin) Try Me.UltraCalendarLook1.Save(stream, CalendarLookCategories.All) Catch MessageBox.Show(Me, "Error encountered while saving to stream!", "Save Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation) End Try stream.Close() Catch Debug.WriteLine("Error encountered while saving stream!") End Try End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; private void button12_Click(object sender, System.EventArgs e) { try { FileStream stream = new FileStream("C:\\Layout.bin", FileMode.OpenOrCreate); stream.Seek(0, SeekOrigin.Begin); try { this.ultraCalendarLook1.Save(stream, CalendarLookCategories.All); } catch { MessageBox.Show(this, "Error encountered while saving to stream!", "Save Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } stream.Close(); } catch { Debug.WriteLine("Error encountered while saving stream!"); } }