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
- MonthCalendar.cs
- CodeFieldReferenceExpression.cs
- InheritablePropertyChangeInfo.cs
- storepermission.cs
- precedingquery.cs
- SolidColorBrush.cs
- DomNameTable.cs
- AttachedPropertyMethodSelector.cs
- COM2ExtendedUITypeEditor.cs
- Configuration.cs
- PrtCap_Base.cs
- DataRowComparer.cs
- RenamedEventArgs.cs
- FlowPosition.cs
- HostedHttpTransportManager.cs
- ResourcesChangeInfo.cs
- DllNotFoundException.cs
- TransformGroup.cs
- TextModifier.cs
- PrintPreviewGraphics.cs
- _SpnDictionary.cs
- HotCommands.cs
- SetStoryboardSpeedRatio.cs
- DataSourceProvider.cs
- Parameter.cs
- HtmlEncodedRawTextWriter.cs
- DrawItemEvent.cs
- CategoryAttribute.cs
- Material.cs
- ExitEventArgs.cs
- CryptoKeySecurity.cs
- SafeHandle.cs
- NetStream.cs
- Calendar.cs
- BuildDependencySet.cs
- ColumnResizeAdorner.cs
- ValidationError.cs
- TextParaClient.cs
- XXXInfos.cs
- Menu.cs
- RenderData.cs
- XmlHierarchyData.cs
- objectresult_tresulttype.cs
- ControlBuilder.cs
- FileLoadException.cs
- TemplateBamlTreeBuilder.cs
- XmlDataProvider.cs
- FilteredXmlReader.cs
- InteropAutomationProvider.cs
- ConnectionPoint.cs
- _ProxyChain.cs
- ResXResourceWriter.cs
- CheckBoxField.cs
- ConnectionsZone.cs
- RegexMatchCollection.cs
- Label.cs
- OleDbReferenceCollection.cs
- Menu.cs
- Msec.cs
- ellipse.cs
- OptimizedTemplateContent.cs
- HashHelper.cs
- QilBinary.cs
- EntityException.cs
- Peer.cs
- GenerateTemporaryTargetAssembly.cs
- CapabilitiesUse.cs
- DataGridColumnFloatingHeader.cs
- ApplicationFileParser.cs
- TemplateBindingExtensionConverter.cs
- CommandLibraryHelper.cs
- HtmlGenericControl.cs
- ConstructorBuilder.cs
- DataSourceProvider.cs
- ValueSerializerAttribute.cs
- FlowDocumentView.cs
- SerializationFieldInfo.cs
- RuntimeCompatibilityAttribute.cs
- AssemblyCache.cs
- Exception.cs
- CollectionEditor.cs
- Delegate.cs
- StyleBamlTreeBuilder.cs
- SequentialUshortCollection.cs
- ValidatingReaderNodeData.cs
- ValidatingCollection.cs
- DocumentSchemaValidator.cs
- WindowsSysHeader.cs
- NameSpaceEvent.cs
- FindCriteriaElement.cs
- EntityCollectionChangedParams.cs
- WebPartVerbsEventArgs.cs
- SecurityHeaderElementInferenceEngine.cs
- WindowsContainer.cs
- PointLight.cs
- DetailsViewInsertedEventArgs.cs
- SafeEventHandle.cs
- SqlTriggerContext.cs
- BaseTreeIterator.cs
- NativeMethods.cs