嗨我在sharepoint 2007中有两个列表.我在列表中有一个查找列,它看起来是另一个字段.我想使用sharepoint对象模型将项添加到第二个列表.如何设置查找字段值.(该值已在另一个列表中).
SPListItem Employee = web.Lists["Employee"].Items.Add();
Employee["Name"] = account.Name;
Employee["Department"] = <lookup value must come here>
Employee.Update();
Run Code Online (Sandbox Code Playgroud) 我正在尝试为我的应用程序在React-Native中创建一个菜单,该菜单应通过以下方式具有多个图标

图标应在同一行并包装,这样,如果屏幕更大,则更多图标将在同一行。
我当前的代码如下
import React from 'react';
import { StyleSheet, View } from 'react-native';
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<View style={styles.box}></View>
<View style={styles.box}></View>
<View style={styles.box}></View>
<View style={styles.box}></View>
<View style={styles.box}></View>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'space-evenly',
flexDirection: 'row',
flexWrap: 'wrap',
paddingTop: 40
},
box: {
width: 100,
height: 100,
backgroundColor: 'aqua',
margin: 10,
}
});
Run Code Online (Sandbox Code Playgroud)
当前输出如下
将来孩子的数量可能会发生变化,但我需要在两侧留出一定的间距,使用flex-start会给出以下输出,这是错误的。我也希望在两侧也留出一定的间距。
我如何将其向左对齐,并使物品周围的空间与上面的图像一样均匀?
我有一个嵌套的List,例如:
List<List<int>> myList = new List<List<int>>();
myList.Add(new List<int> { 2, 7, 3 });
myList.Add(new List<int> { 4, 6});
myList.Add(new List<int> { 2, 5, 1 });
myList.Add(new List<int> { 7, 0, 2 });
myList.Add(new List<int> { 4, 9 });
Run Code Online (Sandbox Code Playgroud)
我想合并至少有一个共同元素的所有列表,以便输出将是一个List<List<int>>元素:
List<int> 2, 7, 3, 5, 1, 0
List<int> 4,6,9
Run Code Online (Sandbox Code Playgroud)
谢谢