Code:
/ DotNET / DotNET / 8.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
- FloaterBaseParagraph.cs
- ReliableMessagingVersion.cs
- RequestCachingSection.cs
- LinqExpressionNormalizer.cs
- AsyncOperationManager.cs
- KnownTypeHelper.cs
- CaseInsensitiveComparer.cs
- FormatterServicesNoSerializableCheck.cs
- RotateTransform3D.cs
- DES.cs
- AudienceUriMode.cs
- ProvidePropertyAttribute.cs
- TableColumn.cs
- DataGridColumnHeaderCollection.cs
- CatalogPartChrome.cs
- InstallerTypeAttribute.cs
- TextRunProperties.cs
- LocatorManager.cs
- SetMemberBinder.cs
- ShaderRenderModeValidation.cs
- EventItfInfo.cs
- SimpleApplicationHost.cs
- ExtendedProperty.cs
- DataListComponentEditor.cs
- CompilationUnit.cs
- RemoteCryptoTokenProvider.cs
- IdentityManager.cs
- sqlstateclientmanager.cs
- mansign.cs
- Char.cs
- Duration.cs
- DesignerAdRotatorAdapter.cs
- ModelEditingScope.cs
- HtmlInputHidden.cs
- ClientSettings.cs
- GridViewDeletedEventArgs.cs
- TraceSource.cs
- WhitespaceRuleLookup.cs
- BamlLocalizableResourceKey.cs
- Run.cs
- WebPartZoneCollection.cs
- SymbolEqualComparer.cs
- HandleCollector.cs
- ScrollProviderWrapper.cs
- XmlTextEncoder.cs
- EncryptedType.cs
- PageThemeCodeDomTreeGenerator.cs
- SizeAnimationUsingKeyFrames.cs
- SecurityDescriptor.cs
- PathGeometry.cs
- OdbcErrorCollection.cs
- TreeNodeCollection.cs
- FrugalList.cs
- TdsParserStateObject.cs
- CompositeFontParser.cs
- PeerNameRecord.cs
- ToolStripOverflow.cs
- TablePattern.cs
- MarkupProperty.cs
- Site.cs
- EdmComplexPropertyAttribute.cs
- ThreadPool.cs
- OdbcConnectionHandle.cs
- ScrollEventArgs.cs
- WeakHashtable.cs
- UidPropertyAttribute.cs
- PenCursorManager.cs
- WindowsUpDown.cs
- ProviderSettings.cs
- SQLBinary.cs
- WebResourceAttribute.cs
- SmiGettersStream.cs
- Debug.cs
- XmlBoundElement.cs
- ToolStripRenderer.cs
- ContextProperty.cs
- InfocardInteractiveChannelInitializer.cs
- XmlResolver.cs
- XmlSchemaObject.cs
- FixedStringLookup.cs
- SymbolType.cs
- CaseCqlBlock.cs
- InternalSafeNativeMethods.cs
- PageParserFilter.cs
- SmtpReplyReader.cs
- UnsafeNativeMethods.cs
- TextCollapsingProperties.cs
- Mutex.cs
- LinqDataSourceContextData.cs
- DbDeleteCommandTree.cs
- AppDomainProtocolHandler.cs
- MessageHeaderDescription.cs
- PrintControllerWithStatusDialog.cs
- ActivityDesigner.cs
- ResolveDuplex11AsyncResult.cs
- XmlSerializerSection.cs
- MobilePage.cs
- DocumentGridContextMenu.cs
- RoleBoolean.cs
- TextLineBreak.cs