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
- MsmqChannelFactoryBase.cs
- ExpandoObject.cs
- Rectangle.cs
- mediaclock.cs
- Button.cs
- EventLogPermissionEntryCollection.cs
- TextContainerChangedEventArgs.cs
- DataGridViewCellStyleEditor.cs
- NullableBoolConverter.cs
- FixedBufferAttribute.cs
- BadImageFormatException.cs
- UserControlCodeDomTreeGenerator.cs
- PositiveTimeSpanValidator.cs
- DataObjectPastingEventArgs.cs
- CustomAttribute.cs
- XmlRootAttribute.cs
- TemplateBindingExpression.cs
- OpenTypeLayoutCache.cs
- LocalizationParserHooks.cs
- DependencyObjectProvider.cs
- ForwardPositionQuery.cs
- Page.cs
- GroupDescription.cs
- MostlySingletonList.cs
- DataGridViewSelectedColumnCollection.cs
- RootBuilder.cs
- ProcessHost.cs
- ResourceManagerWrapper.cs
- XamlFrame.cs
- GlyphsSerializer.cs
- connectionpool.cs
- RepeatBehaviorConverter.cs
- ContextProperty.cs
- QilInvoke.cs
- PenLineCapValidation.cs
- SecurityState.cs
- LocalFileSettingsProvider.cs
- DropTarget.cs
- Rect3D.cs
- CompilerCollection.cs
- RIPEMD160.cs
- PersonalizableAttribute.cs
- DateTime.cs
- EmptyEnumerable.cs
- FileIOPermission.cs
- AncestorChangedEventArgs.cs
- ClientSettingsSection.cs
- ArgumentsParser.cs
- BamlLocalizer.cs
- TypeBinaryExpression.cs
- TraceSection.cs
- ExcludeFromCodeCoverageAttribute.cs
- Fx.cs
- SrgsElement.cs
- WaitHandleCannotBeOpenedException.cs
- MetadataSource.cs
- EditingCoordinator.cs
- PageParser.cs
- ActivityDesignerLayoutSerializers.cs
- SelectedDatesCollection.cs
- ContainerSelectorBehavior.cs
- TdsEnums.cs
- InstanceStore.cs
- PropertyConverter.cs
- IndentTextWriter.cs
- ClientConfigPaths.cs
- GrammarBuilderWildcard.cs
- MergeLocalizationDirectives.cs
- DesignBindingPicker.cs
- TypeLibConverter.cs
- RootBrowserWindowAutomationPeer.cs
- oledbmetadatacollectionnames.cs
- OSFeature.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- ImageIndexConverter.cs
- HandlerFactoryWrapper.cs
- Axis.cs
- QualifiedCellIdBoolean.cs
- PersonalizationStateInfo.cs
- InputLanguageManager.cs
- LocatorPartList.cs
- UpdatableWrapper.cs
- InstanceView.cs
- CommonObjectSecurity.cs
- TdsParser.cs
- DataSourceControl.cs
- XmlConvert.cs
- SendingRequestEventArgs.cs
- COM2ExtendedBrowsingHandler.cs
- BuildProvidersCompiler.cs
- MemberCollection.cs
- TreeViewImageGenerator.cs
- UrlMappingsSection.cs
- FormsAuthenticationUser.cs
- counter.cs
- SessionState.cs
- FullTextLine.cs
- ListDictionary.cs
- dtdvalidator.cs
- NativeMethods.cs