Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // //----------------------------------------------------------------------------- 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
- TextEndOfParagraph.cs
- ValidationSummary.cs
- WebPartCollection.cs
- DateTimeOffsetAdapter.cs
- SerializationHelper.cs
- DataGridPageChangedEventArgs.cs
- SerialStream.cs
- XmlSchemaExporter.cs
- Underline.cs
- LinkButton.cs
- DateTimeOffsetConverter.cs
- DataGridTable.cs
- WizardPanelChangingEventArgs.cs
- DbConnectionClosed.cs
- JsonDeserializer.cs
- NotifyIcon.cs
- HybridObjectCache.cs
- WebPartActionVerb.cs
- AttachedAnnotationChangedEventArgs.cs
- ComponentChangingEvent.cs
- StateChangeEvent.cs
- SharedMemory.cs
- InsufficientMemoryException.cs
- invalidudtexception.cs
- TypeUnloadedException.cs
- VisualStateChangedEventArgs.cs
- XmlCDATASection.cs
- CellConstant.cs
- CryptoHandle.cs
- smtppermission.cs
- DoubleConverter.cs
- MessageEncoder.cs
- TextDecoration.cs
- ConfigurationException.cs
- AnimationLayer.cs
- Win32Exception.cs
- RemoteWebConfigurationHostStream.cs
- ToolStripHighContrastRenderer.cs
- ISFClipboardData.cs
- PathFigureCollectionConverter.cs
- HttpCacheVary.cs
- AnnotationDocumentPaginator.cs
- PointF.cs
- DropShadowBitmapEffect.cs
- FrameworkElement.cs
- DeploymentSection.cs
- Floater.cs
- ShutDownListener.cs
- ASCIIEncoding.cs
- _NegoState.cs
- Utils.cs
- sqlinternaltransaction.cs
- CompletedAsyncResult.cs
- ListControl.cs
- Html32TextWriter.cs
- ShaperBuffers.cs
- Font.cs
- NamespaceList.cs
- RangeBase.cs
- FullTrustAssembly.cs
- MSAANativeProvider.cs
- SettingsPropertyIsReadOnlyException.cs
- UserControl.cs
- StatusStrip.cs
- TypeUsage.cs
- SafeArrayTypeMismatchException.cs
- GeneralTransform3DTo2DTo3D.cs
- GetPageCompletedEventArgs.cs
- File.cs
- HtmlInputHidden.cs
- HMAC.cs
- SafeHandles.cs
- FixedElement.cs
- XmlUnspecifiedAttribute.cs
- BatchParser.cs
- BooleanKeyFrameCollection.cs
- XmlLinkedNode.cs
- EpmSyndicationContentSerializer.cs
- ExtendedPropertyDescriptor.cs
- RegexCharClass.cs
- Expression.cs
- ListMarkerSourceInfo.cs
- activationcontext.cs
- MessagingActivityHelper.cs
- PointLightBase.cs
- OpacityConverter.cs
- ToolStripTextBox.cs
- ApplicationSecurityInfo.cs
- WebBrowserHelper.cs
- versioninfo.cs
- ArrayConverter.cs
- XmlNodeList.cs
- DesignerDataSchemaClass.cs
- PagerSettings.cs
- HtmlInputPassword.cs
- FontFamilyConverter.cs
- TeredoHelper.cs
- Monitor.cs
- WebBrowsableAttribute.cs
- SmiRequestExecutor.cs