Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / FlowLayoutSettings.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DoubleKeyFrameCollection.cs
- RepeaterDesigner.cs
- CmsInterop.cs
- SqlDependencyListener.cs
- FlowchartStart.xaml.cs
- SByte.cs
- DockAndAnchorLayout.cs
- OleDbRowUpdatingEvent.cs
- GeneralTransform3DTo2DTo3D.cs
- NamedPipeProcessProtocolHandler.cs
- Column.cs
- QueryReaderSettings.cs
- StrongTypingException.cs
- ComNativeDescriptor.cs
- Style.cs
- X509SecurityTokenAuthenticator.cs
- keycontainerpermission.cs
- AppLevelCompilationSectionCache.cs
- TreeBuilderXamlTranslator.cs
- _UriSyntax.cs
- ViewGenResults.cs
- BitmapDecoder.cs
- CodeDirectionExpression.cs
- Thread.cs
- ObjectQueryState.cs
- DocumentViewerConstants.cs
- sqlpipe.cs
- ButtonBase.cs
- DataKeyCollection.cs
- SqlNotificationEventArgs.cs
- SafeLocalMemHandle.cs
- XmlSerializationGeneratedCode.cs
- MenuEventArgs.cs
- AssociationTypeEmitter.cs
- TextReader.cs
- XmlDictionaryWriter.cs
- SimpleMailWebEventProvider.cs
- HitTestWithPointDrawingContextWalker.cs
- FixedTextSelectionProcessor.cs
- DesignerActionPropertyItem.cs
- GeneralTransform3DGroup.cs
- PieceNameHelper.cs
- XmlSchemaComplexContentRestriction.cs
- COM2ColorConverter.cs
- ExportOptions.cs
- ReadOnlyCollectionBase.cs
- FormatStringEditor.cs
- Expander.cs
- ObjectListTitleAttribute.cs
- LazyTextWriterCreator.cs
- ISAPIRuntime.cs
- BezierSegment.cs
- DocumentViewer.cs
- BigInt.cs
- SerializationSectionGroup.cs
- ImageAutomationPeer.cs
- GridProviderWrapper.cs
- SqlCacheDependencyDatabase.cs
- controlskin.cs
- XmlNullResolver.cs
- BrowserCapabilitiesFactoryBase.cs
- diagnosticsswitches.cs
- HttpApplicationStateBase.cs
- login.cs
- MultipleViewPatternIdentifiers.cs
- ServiceModelEnumValidatorAttribute.cs
- ApplicationBuildProvider.cs
- CodeLinePragma.cs
- ArraySegment.cs
- ContextStack.cs
- PerformanceCounterCategory.cs
- ResourceProperty.cs
- XmlAnyElementAttribute.cs
- PrimaryKeyTypeConverter.cs
- AttributedMetaModel.cs
- HttpRuntimeSection.cs
- StandardTransformFactory.cs
- Transform.cs
- precedingquery.cs
- _ShellExpression.cs
- UnionCodeGroup.cs
- InstanceLockQueryResult.cs
- ConnectionPool.cs
- MessageSmuggler.cs
- WebBrowserDesigner.cs
- EventBindingService.cs
- CodeThrowExceptionStatement.cs
- Transform3D.cs
- ConfigurationLocation.cs
- FrameworkReadOnlyPropertyMetadata.cs
- StorageComplexTypeMapping.cs
- SoapDocumentServiceAttribute.cs
- TraceData.cs
- PointLightBase.cs
- _ProxyRegBlob.cs
- ProgressBar.cs
- ElementMarkupObject.cs
- BinaryObjectInfo.cs
- IteratorDescriptor.cs
- MessageFilterException.cs