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
- WebPartCancelEventArgs.cs
- MethodToken.cs
- TransformerConfigurationWizardBase.cs
- HttpCapabilitiesSectionHandler.cs
- SizeLimitedCache.cs
- ConfigXmlText.cs
- UpnEndpointIdentity.cs
- CustomCredentialPolicy.cs
- Thread.cs
- ByteRangeDownloader.cs
- ClrProviderManifest.cs
- UrlAuthFailedErrorFormatter.cs
- DataGridColumnCollection.cs
- DataGridViewTextBoxEditingControl.cs
- _AutoWebProxyScriptHelper.cs
- CheckBoxField.cs
- _SslStream.cs
- SequentialActivityDesigner.cs
- SmiConnection.cs
- DispatchWrapper.cs
- MsdtcClusterUtils.cs
- ContainerUtilities.cs
- SqlCacheDependency.cs
- IndentedTextWriter.cs
- IdentityManager.cs
- File.cs
- RootDesignerSerializerAttribute.cs
- MsmqEncryptionAlgorithm.cs
- Enum.cs
- DataServiceResponse.cs
- ProviderUtil.cs
- DispatcherEventArgs.cs
- FillErrorEventArgs.cs
- LayoutTable.cs
- ControlValuePropertyAttribute.cs
- ObjectHandle.cs
- DataGridItemEventArgs.cs
- EntityConnectionStringBuilderItem.cs
- PersonalizablePropertyEntry.cs
- _ContextAwareResult.cs
- EntityDescriptor.cs
- DataGridViewSelectedCellCollection.cs
- SettingsPropertyWrongTypeException.cs
- StringToken.cs
- odbcmetadatacolumnnames.cs
- FaultReasonText.cs
- XamlTreeBuilder.cs
- XmlSchemaInferenceException.cs
- StateManagedCollection.cs
- RegexTree.cs
- IdentityManager.cs
- DbRetry.cs
- Base64Stream.cs
- RequestedSignatureDialog.cs
- PeerObject.cs
- DeferredReference.cs
- Semaphore.cs
- SecurityCriticalDataForSet.cs
- columnmapfactory.cs
- Opcode.cs
- DataGridViewCellParsingEventArgs.cs
- DataRowIndexBuffer.cs
- ParseHttpDate.cs
- IDispatchConstantAttribute.cs
- DataContract.cs
- Geometry.cs
- DirectionalLight.cs
- XmlQuerySequence.cs
- XmlEnumAttribute.cs
- StateWorkerRequest.cs
- WindowsFont.cs
- EllipseGeometry.cs
- OdbcHandle.cs
- AuthorizationSection.cs
- TransactionScope.cs
- EntityParameter.cs
- TextServicesHost.cs
- SafeIUnknown.cs
- GatewayDefinition.cs
- FixedSOMImage.cs
- AutomationElement.cs
- FileDataSourceCache.cs
- SafeArrayRankMismatchException.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- GridEntry.cs
- JsonEncodingStreamWrapper.cs
- JournalEntryListConverter.cs
- DataRowCollection.cs
- BaseHashHelper.cs
- BrowserDefinition.cs
- FileNameEditor.cs
- ListManagerBindingsCollection.cs
- ToolStripContainerDesigner.cs
- StackSpiller.Temps.cs
- TextChange.cs
- StorageEndPropertyMapping.cs
- AttributeUsageAttribute.cs
- ColorConvertedBitmap.cs
- Thickness.cs
- PrivilegedConfigurationManager.cs