Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / FlowLayoutSettings.cs / 1 / FlowLayoutSettings.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.Windows.Forms.Layout; ///[DefaultProperty("FlowDirection")] public class FlowLayoutSettings : LayoutSettings { internal FlowLayoutSettings(IArrangedElement owner) : base(owner) {} /// public override LayoutEngine LayoutEngine { get { return FlowLayout.Instance; } } /// [SRDescription(SR.FlowPanelFlowDirectionDescr)] [DefaultValue(FlowDirection.LeftToRight)] [SRCategory(SR.CatLayout)] public FlowDirection FlowDirection { get { return FlowLayout.GetFlowDirection(Owner); } set { FlowLayout.SetFlowDirection(Owner, value); Debug.Assert(FlowDirection == value, "FlowDirection should be the same as we set it"); } } /// [SRDescription(SR.FlowPanelWrapContentsDescr)] [DefaultValue(true)] [SRCategory(SR.CatLayout)] public bool WrapContents { get { return FlowLayout.GetWrapContents(Owner); } set { FlowLayout.SetWrapContents(Owner, value); Debug.Assert(WrapContents == value, "WrapContents should be the same as we set it"); } } public void SetFlowBreak(object child, bool value) { IArrangedElement element = FlowLayout.Instance.CastToArrangedElement(child); if (GetFlowBreak(child) != value) { CommonProperties.SetFlowBreak(element, value); } } public bool GetFlowBreak(object child) { IArrangedElement element = FlowLayout.Instance.CastToArrangedElement(child); return CommonProperties.GetFlowBreak(element); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResourceReader.cs
- ListBoxItem.cs
- CryptoKeySecurity.cs
- ChannelTerminatedException.cs
- StrokeCollectionDefaultValueFactory.cs
- SchemeSettingElementCollection.cs
- tibetanshape.cs
- wgx_render.cs
- StructuredTypeInfo.cs
- remotingproxy.cs
- CompositeFontInfo.cs
- FixUpCollection.cs
- HtmlTextArea.cs
- FormatterServices.cs
- ConfigurationCollectionAttribute.cs
- ContractHandle.cs
- DbConnectionStringCommon.cs
- TypeHelper.cs
- SourceItem.cs
- JavaScriptObjectDeserializer.cs
- WebPartHelpVerb.cs
- RoutedEventConverter.cs
- SQLBinary.cs
- SystemColorTracker.cs
- BindingFormattingDialog.cs
- TraceUtility.cs
- CodeSnippetStatement.cs
- TextMetrics.cs
- TemplateBindingExtension.cs
- ProcessThreadCollection.cs
- AddInAttribute.cs
- ErrorItem.cs
- LinqDataSourceInsertEventArgs.cs
- DocumentScope.cs
- CodeCompileUnit.cs
- CodeMemberProperty.cs
- SharedPersonalizationStateInfo.cs
- DbConnectionPool.cs
- SoapIgnoreAttribute.cs
- OledbConnectionStringbuilder.cs
- BamlBinaryReader.cs
- FormatterConverter.cs
- TypeResolver.cs
- EnumBuilder.cs
- HttpHeaderCollection.cs
- CalendarDateRange.cs
- odbcmetadatacollectionnames.cs
- LinearGradientBrush.cs
- DataKeyCollection.cs
- InboundActivityHelper.cs
- FullTextLine.cs
- ToolStripMenuItem.cs
- DataRelationPropertyDescriptor.cs
- KeyTimeConverter.cs
- Int32RectValueSerializer.cs
- TypeConverterMarkupExtension.cs
- MenuCommandsChangedEventArgs.cs
- BindUriHelper.cs
- HtmlShim.cs
- InternalBase.cs
- DictionaryManager.cs
- DataGridViewTextBoxColumn.cs
- WebScriptServiceHostFactory.cs
- SqlGenericUtil.cs
- CompilerTypeWithParams.cs
- OutputCacheModule.cs
- MembershipValidatePasswordEventArgs.cs
- NativeMsmqMessage.cs
- EncryptedPackageFilter.cs
- CodeArrayCreateExpression.cs
- NativeMethods.cs
- TokenBasedSetEnumerator.cs
- CellPartitioner.cs
- QilInvokeLateBound.cs
- CounterSample.cs
- SmtpDateTime.cs
- MemberHolder.cs
- PolicyStatement.cs
- NameNode.cs
- WorkflowPageSetupDialog.cs
- SettingsBindableAttribute.cs
- DispatcherHookEventArgs.cs
- XmlPreloadedResolver.cs
- DataGridViewColumn.cs
- sqlmetadatafactory.cs
- StrokeNodeOperations.cs
- DbUpdateCommandTree.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- Rectangle.cs
- WebPartVerb.cs
- MULTI_QI.cs
- ServicePoint.cs
- NativeMethods.cs
- BuildResultCache.cs
- StyleXamlTreeBuilder.cs
- Lease.cs
- RepeaterDesigner.cs
- IsolatedStorage.cs
- SudsWriter.cs